architecture-components-samples
architecture-components-samples copied to clipboard
Samples for Android Architecture Components.
Hi everyone! Thanks for great examples. I'm just wondering what method you recommend to inject dynamic parameters into ViewModel using Dagger 2? Currently in the **GithubBrowserSample** such parameters are injected...
I see this code in UserActivity.java ``` mDisposable.add(mViewModel.getUserName() .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(userName -> mUserName.setText(userName), throwable -> Log.e(TAG, "Unable to update username", throwable))); ``` Why should the Activity manage Disposable? Also **subscribeOn**,...
How to handle network time out excetion java.net.SocketTimeoutException: timeout
Application not response after clicking star button: ` E/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-1 Process: com.android.example.github, PID: 1807 java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference at...
I have one model in my database called Country. To have all information, I need to call 4 APIs (to get general info, to get currency exchange, to get a...
https://github.com/googlesamples/android-architecture-components/blob/99aeb346caef2c545c98df953dfdeb3b50bb013d/BasicRxJavaSample/app/src/main/java/com/example/android/observability/ui/UserViewModel.java#L47 This can't be right.
In BasicRxJavaSampleKotlin example, when execute `userDao.deleteAllUsers()`, we can not listen changes in `UserActivity`: ```Kotlin disposable.add(viewModel.userName() .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe({ this.user_name.text = it }, { error -> Log.e(TAG, "Unable to get username",...
Navigation animations are extremely and consistently janky. I can count the frames. Sometimes between 3 and 10 frames only are drawn, the others are dropped!
It appears to me that you need to write your own navigator implementation that must handle the global `navigate()` method. Is it a recommendation of sorts that the current destination's...
It would be very useful if you could provide an explanation for the file structure:  For example, I don't know what `vo` stands for, or why there are adapters...