The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.


Rx Basics

A programming model that has been gaining substantial ground in recent years is reactive programming. In Android, much of the attention has been on RxJava, the “reactive extensions for Java”. Many libraries offer the ability to be consumed using RxJava, and many Android experts have latched onto RxJava as a way to reduce certain types of complexity in Android app development.

In this chapter, we will review what reactive programming is, what RxJava is, and how you can apply RxJava in your Android app.

However, please understand that reactive programming is a very large topic. Just a complete explanation of RxJava would entail its own book. This chapter should be seen as a launching pad for further explorations of your own, more so than a definitive reference on the subject.

Prerequisites

Understanding this chapter requires that you have read the core chapters of this book.

Life is But a Stream

The preview of this section was lost due to a rupture in the space-time continuum.

Action and Reaction

The preview of this section left for Hollywood to appear in a reality TV show.

A Rx For What Ails You

The preview of this section is unavailable right now, but if you leave your name and number at the sound of the tone, it might get back to you (BEEEEEEEEEEEEP!).

Rx and Lambdas

The preview of this section was fed to a gremlin, after midnight.

A Simple Stream

The preview of this section was fed to a gremlin, after midnight.

Be Your Own Stream

The preview of this section was eaten by a grue.

Removing the AsyncTask

The preview of this section was last seen in the Bermuda Triangle.

Lambdas and Lifetimes

The preview of this section is being chased by zombies.

Streaming from a Resource

The preview of this section was whisked away by a shark-infested tornado.

Error Handling

The preview of this section is in the process of being translated from its native Klingon.

Transmogrification

The preview of this section is off trying to sweet-talk the Khaleesi into providing us with a dragon.

Rx-Enabled Libraries

The preview of this section is en route to Mars.

Further Reading

The preview of this section was traded for a bag of magic beans.

What About LiveData?

The preview of this section did not survive Thanos's finger snap.