Mobile Zone is brought to you in partnership with:

Alec is a Content Curator at DZone and lives in Raleigh, North Carolina. He is interested in Java and Android programming, and databases of all types. When he's not writing for the NoSQL and IoT Zones, you might find him playing bass guitar, writing short stories where nothing happens, or making stuff in Java. Alec is a DZone Zone Leader and has posted 578 posts at DZone. You can read more from them at their website. View Full User Profile

RxJava and Android: How to Develop on Android Without Losing Your Mind

10.16.2013
| 6512 views |
  • submit to reddit

A recent post from Mark Hudnall's blog discusses the purpose and implementation of RxJava, which is a Java implementation of FRP (Functional Reactive Programming). RxJava can do a lot to help manage user interaction, particularly while updating the UI during user interactions or working in the background. Hudnall's post covers the topic from a few different angles:

  • The AsyncTask techniques of the past
  • The RxJava alternative
  • Composition of logically separated tasks
  • Responding to user interaction

While there are a few pitfalls that Hudnall points out, RxJava looks, for the most part, like a promising alternative to Android's AsyncTask class. Check out Hudnall's full post for all the details, and maybe you can keep some of Android's less cooperative aspects from driving you crazy.