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 is [REDACTED].

Action and Reaction

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

A Rx For What Ails You

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

Rx and Lambdas

The preview of this section is in an invisible, microscopic font.

A Simple Stream

The preview of this section is sleeping in.

Be Your Own Stream

The preview of this section was accidentally identified as an Android 'tasty treat' by the Cookie Monster.

Removing the AsyncTask

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

Lambdas and Lifetimes

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

Streaming from a Resource

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

Error Handling

The preview of this section is sleeping in.

Transmogrification

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

Rx-Enabled Libraries

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

Further Reading

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

What About LiveData?

The preview of this section was lost in the sofa cushions.