architecture-components-samples
architecture-components-samples copied to clipboard
Samples for Android Architecture Components.
Hi, Just realized that the sample doesn't handle deleted repositories. The app saves the repositories list from an user but if the user deletes one, the database still has the...
Is there any example that demonstrate the use of `Foreground Service` with Android Architecture Comp. to make it `Lifecycle` aware?
Helllo dev: How ViewModel communicate with other ViewModel that in the same Activity? Could you provide some suggest or sample? Thanks. Because i have a similar "Master/Detail Fragment" that has...
I have a problem with implementing a retry/refresh button, following GithubBrowserSample. The problem is that I can't get data when try to reload data (when there was no internet connection...
HI is it safe to observe a LiveData instance stored in ViewModel directly from a View ? This what i'm doing, it's working, but i don't know if i'am missing...
Hello, First of all, sorry for posting it here. I know it is "out of scope" and that it should go ask in StackOverflow. [I have already done it here.](https://stackoverflow.com/questions/53382320/where-to-place-android-boundservice-in-the-new-recommended-mvvm-architecture)...
Why is this part of the code written in fragment?I think it could written in viewmodel. ViewModel should use the ObservableFiled or LiveData to update UI,and I think livedata is...
Hi! Do I understand correctly that the following snippet: https://github.com/googlesamples/android-architecture-components/blob/f7562c627a1655041059266a1c5034424c64211b/BasicRxJavaSample/app/src/main/java/com/example/android/observability/ui/UserActivity.java#L93-L97 Will add a new subscription to `mDisposable` each time the button is clicked, and that these `Disposable` will not be...
Are there any examples on how to navigate between stacks? For example, if I want to navigate from the Register screen directly to the Home/About screen how do I do...
Our teams are debating whether we should pass parameter WeakReference to method of ViewModel or not. I see in the google's document said > Note: Since the ViewModel outlives specific...