Android Hilt Tutorial – Injecting Dependencies with Hilt

Android Hilt Tutorial

Welcome to Android Hilt Tutorial. I hope you all are aware of Dependency Injection. While building an application (or android application) we use a lot of dependencies. Now you can manage all the dependencies yourself (And you may already managing it if you aren’t using Dependency Injection). But using Dependency Injection Pattern has many benefits …

Read moreAndroid Hilt Tutorial – Injecting Dependencies with Hilt

Android Espresso Tutorial – Testing Fragment in Isolation

Android Espresso Tutorial

Welcome to another tutorial in the Android Testing Series. And this post is called Android Espresso Tutorial that means we are now moving to UI Testing. Espresso is a Testing Framework for writing Automated UI Tests for your Android Application. With espresso, we can simulate the user interaction in our application; its the same as …

Read moreAndroid Espresso Tutorial – Testing Fragment in Isolation

Android ViewModel Unit Test Tutorial

Android Unit Test ViewModel

Hi Guys, welcome to Android ViewModel Unit Test Tutorial. This post is also part of our Android Testing Series. In this post, we will learn how to test our ViewModels. So far, we have learned about writing Unit Tests using JUnit4 and Instrumented Unit Test using AndroidJUnit4. We also learned writing tests for Room Database. Now, …

Read moreAndroid ViewModel Unit Test Tutorial

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

Android View Binding or Data Binding? [2 easy use cases]

Android View Binding or Data Binding

That question has certainly outlived its time in android development. With Kotlin synthetics deprecated now is also gaining popularity. Ever since Data Bindings introduction developers were very happy about it and some developers like me were a little bit confused with questions like. What is the difference between View Binding and Data Binding? What should …

Read moreAndroid View Binding or Data Binding? [2 easy use cases]