Dependency Injection with Dagger
Dependency injecton is when objects define their dependencies. Dependency Injection is build upon the concept Inversion of Control it is used to increase modularity of the program, make it extensible and make it easy to test.
Dagger is a dependency injection framework for both Java and Android. This time I will show you how to create a basic project using Dagger2.
Setup Create a new project in android studio with an empty Activity, default options and set the following dependencies in build.
[Read More]