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 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...

dependency injection

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: ![image](https://user-images.githubusercontent.com/8120472/42137076-8591c674-7d3c-11e8-99ec-7dc3c5807caa.png) For example, I don't know what `vo` stands for, or why there are adapters...