architecture-components-samples
architecture-components-samples copied to clipboard
Samples for Android Architecture Components.
Build failed `PhotoDaoTest.kt: (57, 35): Type mismatch: inferred type is Photo but PhotoEntity was expected`
For example when you try to load this repo's contributors. https://api.github.com/repos/Temon137/CrackerShop/contributors It returns a 204 No Content and the body is null.
I am wondering why we are creating adapters objects inside fragment, is this only to utilize `ContributesAndroidInjector`? or this is really okay with dependency-injection principles.
- when we define our pojo we convert it into dto by @AutoValue, also we implements gson, now we have to annoted with room,don't you guys think the simple class...
I would like to do the following: If I have a network connection then write new data to my backend and then make network call and pull data into Room...
* what to the best way to use it? * when should we use it? * Do we need to use all live data? * Can we use as hybrid,...
Why do we have use `Provider` in ViewModelFactory? When I tried to use it as following; ```java @Inject public GithubViewModelFactory(Map
Hello, I used the code in the GitHub sample. I'm currently facing an issue with the way the ViewModels are injected. Since ViewModelModule lives at the scope of the App...
Hi. Before android architecture components were released I started to work on a project where I had my own ViewModels that had the same life cycle as a Fragment and...
I am studying GithubBrowserSample. In NetworkBoundResource, it calls loadFromDb() in constructor, loadFromDb() is protected abstract. Is it ok to call non-final function in constructor here?