4,135 questions
1 vote
1 answer
722 views
Data is not showing in recycler view from an api
I am trying to fetch data from server and showing it in recycler view. I am using Retrofit library and RxJava2 but its unable to fetch data from server. It's showing following line in LogCat: E/...
2 votes
1 answer
639 views
How to sequentially execute a "Completable" followed by "Single"?
I have two reactive methods in "Layer A" that's exposed to the app: LAYER A - publicly accessible methods to the rest of the app public Single<ResponseData> postMyData(ReqData data, Long id) { ...
0 votes
1 answer
89 views
How to populate recycler view using Retrofit and RxJava2
I am trying to fetch data from server and showing it in recycler view. I am using Retrofit library and RxJava2 but it's unable to fetch data from server.It is showing total count in LogCat but not ...
-1 votes
1 answer
39 views
What is the idiomatic use of HiveMQ client's `subscribePublishes` method
I cannot figure out how to use the FlowableWithSingle<Mqtt5Publish,Mqtt5SubAck> subscribePublishes(Mqtt5Subscribe subscribe) method of the HiveMQ Rx client API. It returns FlowableWithSingle ...
0 votes
0 answers
43 views
RxJava BehaviorSubject.onNext() is called but subscriber is not receiving updates
I am trying to implement background polling in an RxJava-based Android application where: A repository periodically fetches data from an API every 10 seconds and emits updates via a BehaviorSubject. ...
110 votes
6 answers
42k views
Rxandroid What's the difference between SubscribeOn and ObserveOn
I am just learning Rx-java and Rxandroid2 and I am just confused what is the major difference between in SubscribeOn and ObserveOn.
0 votes
0 answers
136 views
How to fetch data having HTML tags in APIs
I am fetching data from the server and I am trying to integrate it in my app. I am using retrofit2 and Rxjava2 to fetch data from the server. How can I get included and excluded filed in my app or how ...
18 votes
4 answers
34k views
io.reactivex.exceptions.UndeliverableException The exception could not be delivered to the consumer because it has already canceled/disposed
Getting an UndeliverableException while using completable public Completable createBucketWithStorageClassAndLocation() { return Completable.complete() .doFinally(() -> { ...
0 votes
1 answer
47 views
How to cancel the Flowable upstream's block logic when a TimeoutException throws
I have a rxjava2 code, like below: public class Demo { /** @noinspection ResultOfMethodCallIgnored*/ @SuppressLint("CheckResult") public static void test() { Flowable....
1 vote
2 answers
1k views
java.net.ProtocolException: unexpected end of stream when uploading file by Rx2AndroidNetworking
I got that error when uploading a file to the server java.net.ProtocolException: unexpected end of stream when uploading file by Rx2AndroidNetworking.upload(serverUrl) ....
55 votes
8 answers
44k views
Reactive Programming Advantages/Disadvantages
I keep studying and trying Reactive Style of coding using Reactor and RxJava. I do understand that reactive coding makes better utilization of CPU compared to single threaded execution. Is there any ...
9 votes
1 answer
7k views
Same value was passed as the nextKey in two sequential Pages loaded from a PagingSource in Paging Library 3 Android
I migrated from paging 2 to paging 3. I tried to implement ItemKeyedDataSource of Paging 2 to Paging library 3. But the problem I was facing is, the same value(currentJodId) was passed as the nextkey ...
0 votes
2 answers
3k views
Get Android Paging 3.0 with RxJava working in Java (not Kotlin)
I managed to get Paging library 3.0.0-alpha02 working with RxJava2 in a Kotlin app, following the Paging 3 documentation. However I had a problem when I ported the paging code to a Java app, in that ...
0 votes
0 answers
334 views
LivePagedList emitting empty list
I am using a paging library from Android Architecture Components. Paging is implemented using ItemKeyedDataSource class MyDatasource( private val queryMap: HashMap<String, String>) : ...
1 vote
0 answers
172 views
Paging Library for those which don't have any numeric Id
I am actually consuming Triposo's API to show the list of countries. https://www.triposo.com/api/ However, in responses, there is no numeric Id and I am struggling while incrementing page size. What ...