O'Reilly logo

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

Reactive Programming for Android

Video Description

Make the most of asynchronous android programming

About This Video

  • Install and set up RxJava for Android development

  • Implement the Reactive paradigm for Android programming using RxJava

  • Create cutting-edge, real-world Android apps with Reactive programming.

  • In Detail

    Writing code on Android is hard. Writing high-quality code that involves concurrent and parallel tasks is even harder. Ensuring that this code will run without unforeseen race conditions is an order-of-magnitude harder. RxJava can help write code for such tasks.

    In this course the novice developer will be introduced to a wide variety of tools that RxJava provides to enable them to produce robust and high-quality code for their asynchronous tasks by building a relatively simple application using advanced RxJava techniques to produce a high-quality product.

    The starting sections will lead the developer through RxJava's initial setup in the Android environment. Later you will learn about RxJava 2.0 step-by-step by starting off with stock data processing and display. The developer will learn to choose appropriate Schedulers and to use the Retrofit library for remote requests. In the final sections, the viewer will also learn advanced topics such as adding integration to Twitter to process its streaming data by combining it with stock data.

    Table of Contents

    1. Chapter 1 : Building Our First RxJava Application
      1. The Corse Overview 00:04:14
      2. Dependencies 00:03:16
      3. The Very First User Interface 00:04:17
      4. Using Retrolambda 00:03:05
    2. Chapter 2 : Understanding the Basics of RxJava
      1. Observables,Disposable,and Schedulers 00:06:09
      2. Investigating the Flow of an Observable 00:02:24
      3. Flowable 00:04:36
      4. Completable, Single, and Maybe Types 00:02:44
    3. Chapter 3 : Learning to Use Retrofit by Fetching Financial Data
      1. Setting up Retrofit and Making HTTP Requests 00:04:56
      2. Transforming Request Data 00:04:57
      3. Regular Updates 00:01:13
      4. Handling Multiple Records on the UI 00:01:23
    4. Chapter 4 : Integrating RxJava 1.0 with RxJava 2.0
      1. Differences Between the Versions 00:03:27
      2. Gluing Different RxJava Versions 00:03:01
    5. Chapter 5 : Writing Data to SQLite and Schedulers
      1. Types of Schedulers 00:05:32
      2. Using Schedulers 00:05:33
      3. Writing Data with StorIO 00:08:46
    6. Chapter 6 : Error Handling and SQLite Data Reading
      1. Exception Handling in RxJava 00:05:27
      2. Showing Errors in the Android UI 00:03:04
      3. Centralized Error Logging 00:02:29
      4. Reading SQLite Data with StorIO 00:08:38
    7. Chapter 7 : Integrating RxJava with Activity Lifecycle
      1. The Android Activity Lifecycle 00:06:23
      2. Resource Leaks 00:08:42
      3. Cleaning up Subscriptions 00:08:40
    8. Chapter 8 : Writing Custom Observables
      1. How to Create Custom Observables 00:05:29
      2. Reading Tweets for Stocks Reactively 00:11:48
    9. Chapter 9 : Advanced Observable Flows Explained
      1. Unwrapping Observables 00:08:12
      2. Passing Values 00:04:20
      3. Combining Items 00:05:51
      4. Filtering 00:06:21
    10. Chapter 10 : Higher Level Abstractions
      1. Extracting Code into Methods 00:08:16
      2. Using Transformations 00:02:44
      3. Simplifying Code with Transformations 00:02:32
      4. Creating Transformer Classes 00:01:23
      5. File-based Caching Example 00:03:16
      6. Using Transformation to Track the Execution Time 00:02:54
      7. Using Transformation to Debug Observables 00:02:06
    11. Chapter 11 : The Basics of Subjects and Preference Persistence
      1. Subjects 00:07:18
      2. Using RxPreferences 00:03:51
      3. Creating the UI for Settings 00:03:25
      4. Updating the Flow 00:04:19