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

Summary

In this chapter, we covered a few ways to create the Observables to connect with regular Java code.

We learned that Observable.fromCallable() and Observable.fromFuture() are very useful in most of the simple cases. Observable.fromCallable() is used more with custom code, while Observable.fromFuture() is more fitting for the integration with external libraries that already use Futures.

Additionally, we saw how we can use the Emitter interface to construct more advanced and complex flows with custom clean up (.setCancellable()) code.

We learned how to use a few simple methods in the TwitterStream library to connect to the Twitter and start receiving updates.

Subsequently, we used the Emitter interface to plug in the existing Twitter4J ...

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