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

Provider Logo

Android App Development: Data Persistence Libraries

via LinkedIn Learning

Overview

Get started with data persistence for Android apps. Learn about various options for storing your app's data in a database, including working with SQLite, Cupboard, and Realm.

By persisting your data, you can provide users with a more seamless experience with your app—even when they go offline. If you're an Android app developer, you have many data persistence options to choose from. In this course, learn about various options for storing your app's data in a database.

To begin, Annyce Davis reviews using the de facto data persistence solution available on Android: SQLite. She takes you through basic SQLite concepts—such as how to create a database wrapper and insert data into a table—as well as a few more advanced topics. Next, she covers working with Cupboard, an open-source project dedicated to simplifying your SQLite interactions. To wrap up, she dives into working with Realm, an object database solution designed with mobile devices in mind. Throughout the course, Annyce discusses establishing relationships between database tables, creating and running queries, as well as performing data migrations.

Syllabus

Introduction
  • Welcome
  • What you should know
  • Using the exercise files
  • Review the starting app
1. SQLite Basics
  • Overview of SQLite
  • Define a database table's schema
  • Define a Database SQLite open helper
  • Explore SQLite create table syntax
  • Execute create table statements
  • Create a database wrapper
  • Explore the ContentValues class
  • Insert data into a table
  • Insert data with a foreign key relation
2. SQLite Beyond the Basics
  • Inspect the database using a terminal
  • Inspect the database using GUI tools
  • Explore SQLite queries
  • Query data using a raw query
  • Parse cursors and display data in the UI
  • Update records in a table
  • Delete records from a table
3. Working with Room
  • Overview of Room
  • Defining database entities
  • Defining a Room database
  • Create a data access object
  • Working with the @Insert annotation
  • Insert data into a table
  • Explore Room queries
  • Query data and display in a RecyclerView
  • Create observable queries
  • Create a schema migration
4. Working with Cupboard
  • Overview of Cupboard
  • Define a database schema
  • Insert data into a table
  • Introduction to converters
  • Store lists as JSON using converters
  • Query data and display in a RecyclerView
  • Update records in a table
  • Delete records from a table
  • Create a schema migration
5. Realm Basics
  • Introduction to Realm
  • Configure a Realm instance
  • Create a Realm object class
  • Insert data into Realm
  • View your data with the Realm browser
6. Realm Beyond the Basics
  • Create relationships between objects
  • Explore Realm queries
  • Query Realm objects
  • Display data in a RecyclerView
  • Explore Realm updates
  • Update Realm objects
  • Delete Realm objects
  • Explore Realm migrations
  • Create a schema migration
Conclusion
  • Next steps

Taught by

Annyce Davis

Related Courses

Reviews

0.0 rating, based on 0 reviews

Start your review of Android App Development: Data Persistence Libraries

Never stop learning Never Stop Learning!

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

Sign up for free