Android Unit Test Room Database – Testing Room DAOs

Android Unit Test Room Database Thumb

In the last post, we learned about Writing The First Unit Test in our Android Project. Now it’s time to level up the things a little. This post’s title is “Android Unit Test Room Database”; we will focus on testing the room database this time. I guess what you usually do is you write your database …

Read moreAndroid Unit Test Room Database – Testing Room DAOs

Android Unit Test Tutorial – Writing Your First Unit Test

Android Unit Test Tutorial

Hey folks, so you can write or code android apps. But do you test them? Yeah, I know everyone compiles and sees the app, whether it is working or not. But do you write code to test? Do you test every function and every module?. If your answer is NO then, this Android Unit Test …

Read moreAndroid Unit Test Tutorial – Writing Your First Unit Test

Retrofit Authenticator Refresh Token Tutorial

Retrofit Authenticator Refresh Token

Ever heard about Refresh Token? Refresh token can get you a new access token, without prompting the user to login again. In this post we will learn how you can use Retrofit Authenticator to Refresh Token. And refreshing token means getting a new access token with the help of refresh token. Building Backend API Now, …

Read moreRetrofit Authenticator Refresh Token Tutorial

Android AsyncTask is Deprecated: Here’s another way

android asynctask deprecated

If you are into android development then I am pretty sure that you know about Android AsyncTask. The AsyncTask class helped us in executing some code in the background thread. With the help of AsyncTask we can execute something on the background thread and get the result back in the UI thread. If you want …

Read moreAndroid AsyncTask is Deprecated: Here’s another way

Higher Order Functions in Kotlin with Example

Higher Order Functions in Kotlin

This post is about Higher Order Functions in Kotlin. One of the cool thing about Kotlin is; it has support of functional programming as well. That means kotlin functions can be stored in a variable, passed to other function as argument and also can be returned from a function.  What are Higher Order Functions …

Read moreHigher Order Functions in Kotlin with Example

Android Request Permission at Runtime Example

Android Request Permission at Runtime Example

Today we will see a simple Android Request Permission at Runtime Example. We have already covered this topic before. But the previous way of requesting permissions in runtime is obsolete. In this post, we will see the most updated way of requesting runtime permission. You can also check the old way of requesting runtime permissions. But …

Read moreAndroid Request Permission at Runtime Example