> Documentation index: https://developer.android.com/courses/llms.txt

# Use Room for data persistence


Use the Room library to easily create and use relational databases in an Android app.  


Go back

## Kotlin Flows in Practice

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

Learn about the powerful and expressive Flow APIs and how to get the most out of Flows in an Android app.

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Testing Flows

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Article *Optional*

Learn more about creating fakes to isolate code being tested, testing StateFlows created by stateIn, and more on how to test Flows and StateFlow.

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button> [Read article](https://developer.android.com/kotlin/flow/test.md.txt)

## Using Room Kotlin APIs

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

Room is a database library that's part of Android Jetpack. It simplifies your work with databases for Android. In this video, Florina will tell us how to use and test Room APIs.

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Persist Data with Room

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Learn how to use Room in your Android apps. Room is an abstraction layer over SQLite and provides convenient APIs to setup, configure, and query the database.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-persisting-data-room)

## Read and update data with Room

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Learn how to add and modify existing data with Room.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-update-data-room)

## Practice: Build Bus Schedule app

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Codelab

Apply the concepts you learned in this pathway to add data persistence to the Bus Schedule app.

[Take codelab](https://developer.android.com/codelabs/basic-android-kotlin-compose-practice-bus-schedule-app)

## What's next?

<button class="toggle gc-analytics-event" data-category="devsite-playlist: toggle button"> *keyboard_arrow_down* *keyboard_arrow_up* </button> Video *Optional*

Great job! You completed this pathway and learned about persisting data with the Room Library. Room provides an abstraction layer over SQLite that allows you to bypass boilerplate code, verifies your queries at compile time, and more!

<button class="playlist-skip gc-analytics-event" data-category="devsite-playlist: skip button"> Skip </button>

## Quiz

Test your knowledge and earn your Room badge.
[Take the quiz](https://developer.android.com/courses/quizzes/android-basics-compose-unit-6-pathway-2/android-basics-compose-unit-6-pathway-2)