Comments on: Android Room Persistent And RxJava2 https://codinginfinite.com/android-room-persistent-rxjava/ Your infinite Coding Solutions Fri, 15 Feb 2019 05:55:17 +0000 hourly 1 https://wordpress.org/?v=6.5.3 By: Ahsen Saeed https://codinginfinite.com/android-room-persistent-rxjava/comment-page-1/#comment-2345 Fri, 15 Feb 2019 05:55:17 +0000 http://codinginfinite.com/?p=764#comment-2345 In reply to HariniPasupathy.

Hey HariniPasupathy,
This error will come if you try to access your database in MainThread and for that you need to use onSubscribe method with Scheduler.io().

]]>
By: HariniPasupathy https://codinginfinite.com/android-room-persistent-rxjava/comment-page-1/#comment-2340 Fri, 15 Feb 2019 04:52:58 +0000 http://codinginfinite.com/?p=764#comment-2340 onError: java.lang.IllegalStateException. Cannot access database on the Main Thread.

I am getting this same error

]]>
By: Ahsen Saeed https://codinginfinite.com/android-room-persistent-rxjava/comment-page-1/#comment-388 Mon, 20 Aug 2018 05:17:57 +0000 http://codinginfinite.com/?p=764#comment-388 In reply to Mikhail Gaev.

If you do not want to get updates you can easily use Single instead of Observable. Single is considered complete after the result come to onSuccess on the other hand with Observable you will get notified every-time whenever the records updates.

]]>
By: Mikhail Gaev https://codinginfinite.com/android-room-persistent-rxjava/comment-page-1/#comment-386 Sun, 19 Aug 2018 10:21:06 +0000 http://codinginfinite.com/?p=764#comment-386 Hi. You wrote very useful article. Thank you. But I don’t quite understand the case when we doesn’t need to get updates for List as opposite to Flowable case. What we need to use as an observable?

]]>
By: Shiraj https://codinginfinite.com/android-room-persistent-rxjava/comment-page-1/#comment-273 Mon, 30 Jul 2018 15:40:32 +0000 http://codinginfinite.com/?p=764#comment-273 awesome article, come up with more articles like this…and some big real-time example…
Thanks…

]]>