This repository contains a detailed sample app that implements Android Architecture Components using Dagger2.
The following diagram shows all the modules in our recommended architecture and how they interact with one another:

I'm using Dagger 2 library to implementing dependency injection in Android apps. Dagger 2 automatically constructs objects by walking the dependency tree and provides compile time guarantees on dependencies.
I will intergrate with local database. You can learn more at : Saving Data Using the Room Persistence Library
- First you should go to this page: https://www.themoviedb.org/documentation/api.
- Register a account and get your API key.
- Then update this API key into gradle file.

https://medium.com/@marco_cattaneo/integrate-dagger-2-with-room-persistence-library-in-few-lines-abf48328eaeb https://proandroiddev.com/mvvm-architecture-viewmodel-and-livedata-part-2-di-1a6b1f96d84b https://medium.com/@Miqubel/understanding-dagger-2-367ff1bd184f https://developer.android.com/topic/libraries/architecture/guide.html http://www.thomaskioko.com/android-architecture-components-part-2-dependency-injection/