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
13
votes
3 answers

RxJava- RxAndroid form validation on dynamic EditText

I have form that can have variable number of EditText that needs to be validated before form submission. I can perform validation check if EditTexts are fixed in number like following - Observable emailObservable =…
SachinGutte
  • 6,947
  • 5
  • 35
  • 58
12
votes
1 answer

RxTextView and other widgets not found while using latest com.jakewharton.rxbinding3:rxbinding:3.0.0-alpha2 library

I wanna use RxJava binding APIs for Android UI widgets in my project. Therefore following the guidance as per this site 'https://github.com/JakeWharton/RxBinding' But I am unable to import any Android UI widgets in my Kotlin File. Where as its…
A.R.
  • 2,631
  • 1
  • 19
  • 22
12
votes
4 answers

How to implement Periodic processing of user input?

My current Android application allows users to search for content remotely. e.g. The user is presented with an EditText which accepts their search strings and triggers a remote API call that returns results that match the entered text. Worse case is…
Hector
  • 4,016
  • 21
  • 112
  • 211
12
votes
2 answers

How to make RxErrorHandlingCallAdapterFactory?

I found this. But in new ver compile 'com.squareup.retrofit2:adapter-rxjava:2.2.0' at CallAdapter it has two params CallAdapter How to modify RxCallAdapterWrapper to implement if from CallAdapter
NickUnuchek
  • 11,794
  • 12
  • 98
  • 138
12
votes
3 answers

Retrofit default thread

I use Retrofit with RxJava in my Android app, and my code: public void getConfig(NetworkSubscriber subscriber) { Observable observable = mApi.getConfig(); observable.subscribeOn(Schedulers.newThread()) …
xuyanjun
  • 818
  • 7
  • 8
11
votes
1 answer

Network Awareness from Repository using RxJava

I am having trouble to find a proper solution to make view/viewmodel aware of network status, specially using RxJava. I tried to follow Google's NetworkBoundResource and Iammert's networkBoundResouce (also tried GithubBrowserSample but I just don't…
reinaldomoreira
  • 5,388
  • 3
  • 14
  • 29
11
votes
5 answers

Cannot resolve rxjava2 with gradle 3.0

Hare is my app gradle: apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { applicationId "com.example.atumanin.testandroidannotations" minSdkVersion 15 targetSdkVersion 26 …
Alexander Tumanin
  • 1,638
  • 2
  • 23
  • 37
11
votes
1 answer

Observable.just vs Single in RxJava

I'm new to RxJava and RxAndroid and trying to understand the difference between Observable.just and Single. It looks like each is designed to emit one item for its observer. Here is the code of my simple Android activity with two buttons. The first…
Maksim Dmitriev
  • 5,985
  • 12
  • 73
  • 138
11
votes
2 answers

RxJava2 in CursorLoader’s onLoadFinished callback

To get data from database I use CursorLoader in the app. Once onLoadFinished() callback method calls the logic of app converts Cursor object to List of objects within business model requirements. That conversion (heavy operation) takes some time if…
devger
  • 703
  • 4
  • 12
  • 26
11
votes
1 answer

Difference between Observable.create() and Observable.fromCallable()

Suppose we are getting a generic Object from SharedPrefs using .create(): return Observable.create(subscriber -> { String json = sharedPreferences.getString(key, ""); T myClass = gson.fromJson(json, generic); …
hrskrs
  • 4,447
  • 5
  • 38
  • 52
11
votes
2 answers

SIngle RxJava how to extract object

I can think of two ways to get the value from Single Single observableHotelResult = apiObservables.getHotelInfoObservable(requestBody); final HotelResult[] hotelResults = new HotelResult[1]; …
Deepanshu
  • 209
  • 1
  • 2
  • 8
11
votes
2 answers

RxJava: How to to execute a task every 5 seconds only if the last task finished

I'm using RxJava. I have to execute a specific task every 5 seconds. That works perfectly by using the "Observable.Interval" method. However, I also have the following constraint: A new task must not be executed if the last task didn't finished. In…
ayorosmage
  • 1,607
  • 1
  • 15
  • 21
11
votes
3 answers

How to zip few observables in Kotlin language with RxAndroid

I have some problem. I'm a beginer in RxJava/RxKotlin/RxAndroid, and dont understand some features. For Example: import rus.pifpaf.client.data.catalog.models.Category import rus.pifpaf.client.data.main.MainRepository import…
Scrobot
  • 1,911
  • 3
  • 19
  • 36
11
votes
2 answers

How to use Flowable in RxJava 2?

There is an introduction of new Flowable in RxJava2. How to use this in android. There was no Flowable in RxJava1.
anand gaurav
  • 915
  • 2
  • 7
  • 9