Learn reactive programming to create awesome Android and Java apps
RxJavaReactive Extensions for the JVMis a library for composing asynchronous and event-based programs using Observable sequences for the Java VM, which will help you beat Android platform limitations to create astonishing Android apps.
Starting with some quick background information on the Rx .NET library, this book quickly moves on to your first example. You will understand Observables and learn to filter, transform, or merge them in detail. Next, you will learn how to get rid of Threads, AsyncTasks, and Handlers with Schedulers to create a smooth user experience. Develop an easy, ready-to-go approach to REST API communications and enrich your skills by working with new challenging examples.
By the end of the book, you will have explored the reactive programming world and will have created your first Android app without having to think about threading, networking, concurrency, and collection management.
What You Will Learn
Master the Observer pattern and create Observable objects and sequences
Convert lists of objects to Observable sequences
Change existing methods to reactive asynchronous functions
Filter Observable sequences to ensure that only the value you want will reach your functions
Transform and manipulate Observable sequences into new sequences
Combine, merge, and concatenate Observable sequences to create new sequences
Move away from the Android main thread and AsyncTask to learn multithreading and concurrency the easy way with Schedulers
Communicate with a remote REST API using Retrofit Observable responses
Create your first RxJava-powered Android app
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.