Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

Data Persistence with Room Course

via Treehouse

Overview

Prepare for a new career with $100 off Coursera Plus
Gear up for jobs in high-demand fields: data analytics, digital marketing, and more.

Storing data is important in any Android app. In this course we'll use the Room library to store data in a SQLite database!

Syllabus

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.

Chevron 6 steps
  • Introducing Room

    1:51

  • Running the App

    3:08

  • Investigating the Code

    6:02

  • Finding Problems and Creating a ViewModel

    5:27

  • Using a ViewModel

    3:39

  • Data Persistence Basics Quiz

    5 questions

Working 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!

Chevron 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!

Chevron 5 steps
  • Getting Access to the Database

    4:38

  • Saving and Deleting

    6:53

  • Using a LiveData

    7:41

  • Finishing Up

    3:22

  • Room LiveData

    5 questions

Reviews

Start your review of Data Persistence with Room Course

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.