"Android Data Persistence" was retired on August 31, 2018. You are now viewing the recommended replacement.

- Android
- Intermediate
About this Course
Storing data is important in any Android app. In this course we'll use the Room library to store data in a SQLite database!
Data Persistence Basics
In this stage we'll introduce an app, talk about the problems with it, and then fix one of those problems by using a ViewModel.
6 stepsWorking with Room
In this stage we'll start working with Room. We'll see how to create the components that make up a Room database and how to tie them together!
11 steps-
The Parts of a Room Database
3:45
-
Creating the PizzaTopping Entity
5:50
-
Choosing Queries
1:47
-
Creating the First Dao
3:45
-
Finishing the Daos
4:17
-
Room Beginnings
6 questions
-
Creating the RoomDatabase
4:10
-
Testing the Database
6:05
-
Saving a Test Pizza
4:54
-
Saving a Pizza's Toppings
5:16
-
Room Endings
5 questions
Connecting Room to the UI
In this stage we'll show how to connect Room to the user interface. We'll also use a LiveData to make some UI components update automatically when the database changes!
5 stepsTeacher
-
Ben Deitch
Ben is an Android teacher with a long history of creating and tinkering with Android apps. He's an avid learner, loves playing sports, and is a fairly average chef.