Sign in Go Pro

RxJava

Introduction to RxJava for Android Developers

 

Up next

About

In the is Lesson you will learn: - How to start with an existing application (or new application) and introduce RxJava - How to create an Observable with the Observable.just() operator - How and why to defer Observable execution with the Observable.defer() operator - How how to create a full RxJava Subsriber with onCompleted(), onError() and onNext() implementations - How to debug simple RxJava errors - How to use the subscribeOn() operator to determine what thread the subscription should occur on - How to use the observeOn() operator to set what thread the subscriber should be notified on - How to set up an RxJava Subscription - How to prevent common memory leaks with subscriptions by unsubscribing - At the end of this Lesson you will be able to take your existing long running tasks (such as AsyncTasks) and transition them into RxJava Observables. Links * [RxAndroid](https://github.com/ReactiveX/RxJava) * [RxJava](https://github.com/ReactiveX/RxAndroid) * [Observable.just() docs](http://reactivex.io/documentation/operators/just.html) * [Observable.defer() docs](http://reactivex.io/documentation/operators/defer.html) * [subscribeOn() docs](http://reactivex.io/documentation/operators/subscribeon.html) * [RxJava Schedulers](https://github.com/ReactiveX/RxJava/wiki/Scheduler) * [RxAndroid Schedulers](https://github.com/ReactiveX/RxAndroid/blob/master/README.md#user-content-observing-on-the-ui-thread) * [Subscription doc](http://reactivex.io/RxJava/javadoc/rx/Subscription.html) * [OkHttp](http://square.github.io/okhttp/)

Lessons in RxJava