Question: how dagger 2 works android?
Answer: In Dagger 2, classes annotated with @Module are responsible for providing objects which can be injected. Such classes can define methods annotated with @Provides . The returned objects from these methods are available for dependency injection.