Android's Architecture Components

In 2017, Google introduced the Architecture Components library, with Google-supplied implementations of object-relational mapping (ORM) capabilities and lifecycle-aware components. There is little doubt that this library will be a key part of Google’s recommended app development stack going forward.

This book dives deep into the Architecture Components, showing you how they work individually and in concert. With dozens of sample projects, the book covers much of what blog posts miss, in terms of how to make this library work in practice.

This book is published in PDF, EPUB, and MOBI/Kindle formats, for use in your favorite digital book reader. Or, read directly in your Web browser on the Warescription site, complete with full-text searching.

Subscribe for $20 »

The Table of Contents

Each bullet shown below represents a chapter. Use the search field in the nav bar to search all of the CommonsWare books to see what they hold!

  • Room Basics
  • Testing Room
  • The Dao of Entities
  • Room and Custom Types
  • Room and Relations
  • The Support Database API
  • Room and Migrations
  • Lifecycles and Owners
  • LiveData
  • ViewModel
  • Other Lifecycle Owners
  • LiveData and Data Binding
  • WorkManager
  • M:N Relations in Room
  • Polymorphic Room Relations
  • LiveData Transformations
  • RxJava and Room
  • RxJava and Lifecycles
  • Packing Up a Room
  • Paging Room Data
  • LiveData and Bound Services
  • Immutability
  • The Repository Pattern
  • Introducing Model-View-Intent
  • A Deep Dive Into MVI
  • Backing Up a Room
  • Room and Full-Text Searching
  • Room and Conflict Resolution
  • Configuring SQLite Beyond Room
profile for CommonsWare at Stack Overflow, Q&A for professional and enthusiast programmers

What's New

  • New chapter on using ViewModel to manage connections to bound services
  • New chapter exploring the Room OnConflictStrategy options
  • Updated chapter on using Room with RxJava


Spread the Word!