O'Reilly logo

Reactive Android Programming by Tadas Subonis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating RxJava with Activity Lifecycle

There are so many important things to know before one can start building robust Android applications with RxJava that it's hard to pick which things to cover first. However, Android Activity Lifecycle management along with RxJava subscriptions will probably be more important (and more difficult).

Without proper awareness and integration with the lifecycle, it is quite easy to lose control of Subscriptions and Observables. We will see that it often leads to memory leaks and tasks that never terminate. However, we will also cover ways to prevent that from happening.

First of all, we will review the Android Activity Lifecycle, and we will pay extra attention to the places where RxJava is used most often. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required