Module 07 of 10

Local Data & Storage

Lessons

About This Module

Most apps need to remember things: a saved note, a user setting, a list that should still be there after the app closes. Local storage keeps that data on the device so your app works offline and starts fast.

Begin with Room, Android's database library built on SQLite. You describe your tables as entities, write queries in DAOs, and read results as Flow so the UI updates when the data changes. Then learn Preferences DataStore, the modern replacement for SharedPreferences, for small key-value data such as settings and theme choices.

The lessons below mix video tutorials with the official Android guide and codelab. Start with the Room video, then use the documentation as a reference. Once you can save and load data, continue on to Networking & APIs.

Lessons

6 lessons
01

Introduction to Android Room Database & Jetpack Compose

An introduction to Room and how to connect it to a Jetpack Compose UI. A good first stop.

02

Building a Shopping List App: Jetpack Compose & Room Database

Build a complete shopping list app that stores and retrieves data with Room and shows it in a Compose UI.

03

Android Jetpack DataStore Tutorial: Migrate from SharedPreferences

Learn Jetpack DataStore and how to move existing SharedPreferences data over to it.