Search⌘ K
AI Features

Coding Challenge: Automatic Room Migration

Explore how to apply automatic migrations in Android Room by adding an address field to the User entity. Learn to update database classes and UI elements to handle read and write operations, ensuring smooth data persistence within your app.

Problem definition

We learned about automatic data migrations in the previous lesson. Let’s apply what we learned and add a new address field in the User entity and use it for read and write operations.

Instructions to follow:

  1. Add the address field in the User entity by updating the User.kt file.

  2. Add an automatic ...