Android 12 Developer Preview is here! Try it out, and give us your feedback!

Lesson 9: App architecture (persistence)

Create a database using the Room library and use coroutines to simplify asynchronous programming.

 

Create a Room database

Codelab

Import the starter code for the TrackMySleep app. Then, use Room for data storage persistence in your Android apps.

Coroutines and Room

Codelab

Use Kotlin coroutines to handle long-running tasks in your Android app elegantly and efficiently.

Quiz

Earn your badge for completing Lesson 9: App architecture (persistence).