architecture-components-samples icon indicating copy to clipboard operation
architecture-components-samples copied to clipboard

Samples for Android Architecture Components.

Results 192 architecture-components-samples issues
Sort by recently updated
recently updated
newest added

Hi! Thanks for the Rx + Kotlin + Room example @florina-muntenescu ! I was looking at the UserViewModel + Activity and found myself wondering how the testability could go further,...

On a real application, a method like `updateUserName()` might perform a long running operation (network call / db query) This example is clearing the `compositeDisposable` on `onStop()`, so this long...

https://github.com/googlesamples/android-architecture-components/blob/master/GithubBrowserSample/app/src/main/java/com/android/example/github/repository/FetchNextSearchPageTask.java#L58 There is a bug here, when loading to the last page, its next page is 0 instead of null, so I add `if(nextPage == null || nextPage == 0){}`...

bug

Sometimes the ViewModel needs to invoke an action using an Activity (for example to show a snack bar or to navigate to a new activity). Using MVP it's easy to...

How to best integrate Room with a Firebase database? Should we subscribe to Firebase updates and write the received data into a local Room database as a persistent local cache...

question

There is always the case: the user could not torrent the slow data loading process, and want to cancel it. But in the sample project, I cannot find there is...

I have seen there are many blogs,tutorial about the sample of mix rxjava and livedata with new architecture component.Actually it leads to some kind of confusion whether this or that...

Why is loadFromDb() called another time after network data is fetched successfully? Why can't we use dbSource live data object again? The way I understand live data object of a...

The `AppInjector` class looks for activities with `HasSupportFragmentInjector` interface overridden and then calls `AndroidInjection.inject(activity);` on them. I think it would make more sense if it looked for `Injectable`. `HasSupportFragmentInjector` should...

dependency injection

Tests take 45 minutes for the samples, v2 should reduce that.