Android Room with a View - Java
This code used Room in a database-backed app. You'll create the data layer for an app that tracks Product, and you'll build a user interface that allows users to insert, update and delete Product from a list.
Getting started
This code uses the AndroidX libraries. To learn more, read Migrate to AndroidX.
Prerequisites
To complete this code, you need:
-
Android Studio 3.5 or later.
-
Basic knowledge of Java.
-
Basic knowledge of Room.
-
Basic knowledge of the Android lifecycle.
Getting the code
-
Download the starter code from GitHub.
-
Open the project in Android Studio.
-
Open the
build.gradle
file in theapp
folder and check that thecompileSdkVersion
is 28 or higher. -
Open the
build.gradle
file in the project folder and check that theclasspath
forcom.android.tools.build:gradle
is 3.5.0 or higher.