Questions tagged as 'rxjava'

1
answer

How to make two Retrofit calls in jail with RxJava?

I make a call to retrieve some data and the second call - which should be done within the first - uses one of the fields of the previous call. val restApi = retrofit.create(RestAPI::class.java) testAPI.searchDoc("language", "title_query")...
asked by 12.12.2017 / 00:12
1
answer

Values are being sent null

For some reason the arrays are being sent null in setListGrades, however inside the log shows the normal arrays. The API is being consumed correctly, so why is it null in sending this method? @Override p...
asked by 23.04.2017 / 17:28
0
answers

Problem in creating unit test android with RxJava and Mockito

The test comes down to making the assertions that the methods are called when the execution is done successfully, but an error is occurring that I can not resolve. My class: class LoginActivityPresenter(private var authUseCase: AuthStruct...
asked by 03.08.2018 / 13:52
1
answer

How to use RxAndroid?

I'm trying to use RxAndroid but I can not figure it out. In reality, I wanted to be able to use methods within an Observable, to access the FirebaseFirestore and retrieve the data into Realm. So the question is: How do I create observable...
asked by 23.11.2017 / 12:18
0
answers

RxJava2 and Requery Android select ambiguous

I use this function to get ReactiveEntityStore in the application class private static @NonNull ReactiveEntityStore<Persistable> getDataStore(@NonNull Context context) { DatabaseSource source = new DatabaseSource(context, Models.DEFA...
asked by 29.05.2018 / 03:38
0
answers

Fragments hang after inserting data

I'm having trouble entering information using this code. The process executes and inserts normally, but from there it no longer loads my fragments and is only locked in a white screen. I'm starting with RxJava and I do not even know if the code...
asked by 28.02.2018 / 19:07
1
answer

onNext in observer is never called

Consider the following code snippet. ReplaySubject<List<Object>> subject = ReplaySubject.create(); subject.subscribe(view::mostraListaObjetos); subject.onNext(getListOnline()); //logo apos essa linha o metodo view.mostrarListaObj...
asked by 05.07.2017 / 02:13
0
answers

RxJava receiving the data

How to separate this array into 3 arrays, type one for gradesList, one for faultList and one for classList. I'm using RxJava.    [GradeList (gradesList = 4.5, faultList = 5, classList = math)   GradeList (gradesList = 9.5, faultList = 10, cla...
asked by 10.04.2017 / 22:18