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

How to process all events of Observable in one thread, but get the latest value available in another thread in Rxjava?

I am using RxJava2 in Android and I have the below problem, but it's not specific to Android. I have a PublishSubject to push all my events. I call publishSubject.onNext() in multiple parts of my code based on different events. But I have a central…
Henry
  • 17,490
  • 7
  • 63
  • 98
0
votes
2 answers

Replace Async Task from RxAndroid

I am new in rxAndroid, I just to simple replace asynTask from rxAndroid. I just want to create a list using db query in background new AsyncTask() { @Override protected void onPreExecute() { …
0
votes
1 answer

How can I get request url from retrofit with rx ? - Android

MinSdkVersion of my application is 17 and targetSdkVersion is 25 .In this application I am connecting to service with Rx and retrofit, this code don't work on api 17 I can't connect to webService, bellow is my code : My RetrofitApi.java : public…
user4813855
0
votes
1 answer

what really happens when we are using observer in rxjava?

I like to know what is really going on internally while we use a observer in RxJava, and how do the subscriber get all the data stream from the observer. Thanking you all in advance.
Nidin Lal
  • 1
  • 1
0
votes
2 answers

Single.just exception

I'm stuck to understand why RxJava does not capture my exception and it just crashes. The exception occurs while getting the object to emit. Here is how my code looks like: TestService testService = new…
tomato
  • 141
  • 1
  • 6
0
votes
1 answer

How to concat data from two observables

I have two observables: Observable profileObservable = briteDatabase.createQuery(UserMapper.Table.NAME, sql, String.valueOf(userId)).mapToOneOrDefault(UserMapper.MAPPER, null); Observable > carObservable =…
Tom Wally
  • 542
  • 3
  • 8
  • 20
0
votes
1 answer

rxBindings - How to know what consumer type should be when debouncing click events?

using rxBindings im trying to slow down a click event but i would like to know what the parameter is need. For example, here is a call i am doing on a imageview. So ImageView v; RxView.clicks(v) .throttleFirst(400,…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
0
votes
0 answers

How do i maintain the state of a UI element in detail and listing page using RxJava android

Let say the favorite button is pressed on detail page then on back press when I come back on listing page I wanted the state of the button to be shown as the view of pressed, using RxJava
Varun Behl
  • 53
  • 3
  • 8
0
votes
1 answer

RxJava2 Flowable.combineLatest behavior if all Flowables don't emit

I am following this code to do some error validation. Here's the combineLatest implementation which accepts inputs from 3 fields and does error validation on each of them. Flowable.combineLatest( _emailChangeObservable, …
dev
  • 11,071
  • 22
  • 74
  • 122
0
votes
2 answers

RxAndroidBle - RxBleDevice getName() always returns null

Having the following code rxBleClient = RxBleClient.create(this); scanSubscription = rxBleClient.scanBleDevices( new ScanSettings.Builder() .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES) …
reixa
  • 6,903
  • 6
  • 49
  • 68
0
votes
2 answers

How can i get subscribe to only last data?

i am doing system of searching in my App. And i subscribe on EventBusEvent addSubscription(TheApplication.getEventBus().observe(UpdateSearchResults.class).subscribe(event -> getViewModel().setParameter(event.getText()) )); Event: public…
Tipok
  • 675
  • 8
  • 26
0
votes
1 answer

How to use Android RXJava to chain linked Retrofit calls and return new Object model

So the scenario is one where we need to make 2 retrofit calls, @GET("/") Observable searchMovies(@Query("apikey") String apiKey, @Query("s") String searchKey); @GET("/") Observable
getMovie(@Query("apikey") String apiKey,…
0
votes
1 answer

RxJava / RxAndroid + Retrofit , making 6 different Observable calls asyncronous

i am in the process of learning RxJava / Android (i'm currently combining it with Retrofit for network calls) , now i have a question, say i have 6 different Observables , like this : Observable clients = apiInterface.getClients() …
Alex
  • 127
  • 3
  • 12
0
votes
0 answers

Error message from RxAndroidBle

I have an Android Service that is giving me the following error message when it is being destroyed: Service io.aeroscope.aeroscope.AeroscopeBluetoothService has leaked IntentReceiver com.polidea.rxandroidble.RxBleAdapterStateObservable$1$1@3d91b742…
0
votes
1 answer

Right way to Retrofit2/RxJava2 on MVP

After couple of days I can use RxJava2 and Retrofit2 in an independent way. Now I'm trying to fulfill the challenge of a Clean Architecture with RxJava2 and Retrofit2. I did a nodejs server for a simple REST service on my local machine. This is what…
LearningCharlito
  • 327
  • 1
  • 2
  • 20
1 2 3
99
100