Questions tagged [rx-android]

RxJava bindings for Android

specific bindings for . RxAndroid module adds a number of classes to RxJava that make writing reactive components in Android applications easy and hassle free.

RxAndroid is open sourced and available under the Apache License, Version 2.0


Related tags

1768 questions
0
votes
1 answer

Android app install with Failure [INSTALL_FAILED_DEXOPT] Android 2.3.x devices

I have an app composed of multiple modules which I have just updated from rxjava1 to rxjava2. Now there is no way to install it on android 10 devices or emulators. On compile time, no errors but installs fails either from android studio or command…
vallllll
  • 2,731
  • 6
  • 43
  • 77
0
votes
1 answer

Rx-Java Retrofit not getting any response

I'm trying to do a sample Rxjava-Retrofit App. I have an API which fetches the weather information of a user entered location from OpenWeatherMap My retrofit Api Interface looks like this public interface ApiInterface { …
user4260260
0
votes
3 answers

Combining 2 Observables only if the first one fires

I'm quite new to Rx and I have a situation that I don't find anything about (or maybe I don't ask the right question). I have an observable that should trigger a specific method. However to call that method I need the value from a second observable…
Daniel
  • 597
  • 11
  • 19
0
votes
2 answers

Indexwise sum of list of lists using rxjava

I have a list of array lists. Each list in the main list contains constant number of items. (Say 3 items in each array list). What I want to do is I need to get the indexwise sum of each list as a new List. for example if my main List contains array…
user4260260
0
votes
1 answer

How to unit test complex logic in RxJava operators?

I am struggling with how to test complex logic in RxJava streams that have many operators. I'm finding that if I have complex logic and many operators with complex logic strung together that unit testing the stream becomes a nightmare because there…
neonDion
  • 2,278
  • 2
  • 20
  • 39
0
votes
0 answers

(RxAndroid / RxJava) Any way to check if the response from BehaviorSubject is the cached one?

I've been working with BehaviorSubjects with regards to presenters that listen in on the response of a subject without having to make the query themselves. I've been fascinated by the beauty of this type of subject. However, the downside is... when…
ReGaSLZR
  • 383
  • 4
  • 17
0
votes
1 answer

RX java composition logic

I am new to reactiveX so this might be a stupid question. I am trying to combine two operation one after another inside one method call. Step 1 is to fetch some details of data and store those details Step 2 is to fetch the data based on those…
aatish rana
  • 149
  • 1
  • 15
0
votes
1 answer

How to reuse an Observer in case of failure?

I have an Activity which loads data from the network and has a "retry" button if the request fails which just re-makes the same network call. This is the simplified code: public class MainActivity extends Activity { private…
Henrique
  • 4,921
  • 6
  • 36
  • 61
0
votes
0 answers

Observable.groupBy() limit on count of input data?

I have following two classes and function: public static class Shop { public int id; public String name; public List coordinates = new ArrayList<>(); @Override public String toString() { String str = id + "…
Yanbaev
  • 1
  • 3
0
votes
2 answers

Retrofit JSON OBJECT Post

I want to send a json object to post request. The Json have the next Structure: { "email:"test@test.com", "password": "test", "hash": "true" } This works nice in POSTMAN but I don't know how i have to define the key in retrofit like in…
Nega developer
  • 259
  • 3
  • 8
  • 19
0
votes
1 answer

Two Or more HTTP calls based on some conditions using zip operator of Rx Java

I am trying to fire 3 HTTP Api calls using Android RxJava through zip operator. My problem is, while triggering 3 API's, for one API,I need to check whether the user is logged in or not. If user is not logged in I should not trigger three API…
Prasad PH
  • 105
  • 7
0
votes
0 answers

Wait for side effect finish before emit

I obtain list of music files from database public Flowable> getMusicFiles() { return database.musicDao().getMusicFiles(); } Also, I have a method that downloads a single file from storage (implementation doesn't matter…
0
votes
1 answer

What is the real meaning of getValue() of BehaviorSubject?

In API, it is written in 'Returns the current value of the Subject if there is such a value and the subject hasn't terminated yet.' But, in this situation, which value is returned? That is, I'm wondering getValue() returns the value subscribed and…
Sohyun Ahn
  • 240
  • 2
  • 9
0
votes
1 answer

Can I Use RxAndroidBle and RxJava2 in the same project?

I have an Android application which relies on RxAndroid (based on RxJava2). I've also added the RxAdnroidBle dependency which still uses RxJava1. During compilation I had the following error: Execution failed for task…
Medvednic
  • 692
  • 3
  • 11
  • 28
0
votes
1 answer

How to override Schedulers.io()?

I need to emulate app's behavior on very slow devices. So I want to override Schedulers.io() to use only one thread with low priority. And, if it possible, to add some delay before putting task to queue. Is there any ideas how to do it once…
tse
  • 5,769
  • 6
  • 38
  • 58