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

Reading tweets for stocks reactively

Since we know already how to integrate any kind of Java code into the reactive flow, we are ready to start working with Twitter streams.

To monitor Twitter for tweets that are related to the stocks we are following, we will use the Twitter4J (available at http://twitter4j.org or https://github.com/yusuke/twitter4j) library. It's a pure Java solution that provides an interface to the Twitter API through Java.

Initially, we will transform the original Twitter4J API into an Observable compatible interface. Afterward, we will plug it into the existing flow where we are monitoring stock updates.

Finally, since it will contain new textual data, we will have to make modifications to the UI so that we can show ...

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