
Save data in a local database using Room - Android Developers
Oct 29, 2025 · Apps that handle non-trivial amounts of structured data can benefit greatly from persisting that data locally. The most common use case is to cache relevant pieces of data so …
Define data using Room entities - Android Developers
Feb 10, 2025 · When you use the Room persistence library to store your app's data, you define entities to represent the objects that you want to store. Each entity corresponds to a table in …
Accessing data using Room DAOs - Android Developers
Feb 10, 2025 · Learn to modify database tables using data access objects (DAOs), a part of the Room Library
(Deprecated) Android Room with a View - Java
In this codelab you build an app that uses Android Architecture Components (RoomDatabase, Entity, DAO, AndroidViewModel, LiveData) and implements the recommended architecture for …
Room | Jetpack | Android Developers
The Room persistence library provides an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite.
Migrate your Room database - Android Developers
Oct 29, 2025 · This means that if a database is originally created by a version of Room lower than 2.2.0, upgrading your app to use Room 2.2.0 might require you to provide a special migration …
Write asynchronous DAO queries | App data and files | Android …
Feb 10, 2025 · To prevent queries from blocking the UI, Room does not allow database access on the main thread. This restriction means that you must make your DAO queries asynchronous.
Choose relationship types between objects | App data and files ...
Feb 10, 2025 · Because SQLite is a relational database, you can define relationships between entities. But while most object-relational mapping libraries let entity objects reference each …
Prepopulate your Room database - Android Developers
Feb 10, 2025 · In Room 2.2.0 and higher, you can use API methods to prepopulate a Room database at initialization with contents from a prepackaged database file in the device's file …
Referencing complex data using Room - Android Developers
Feb 10, 2025 · Room provides functionality for converting between primitive and boxed types but doesn't allow for object references between entities. This document explains how to use type …