Adding an item
When you
enter the text for the item, tap the
add
button.
Now that you've added the code to create the database and added an item, take a
look at the new database.
Note
: The item you added won't
be displayed in the
RecyclerView
yet, but
stay tuned; you will add that capability after a few more steps.
Viewing the SQLite database
Each app has its own folder to store databases on the device just like files. To look at
the
database that was just created, open the
Device File Explorer
as you did in
Chapter 1, "Using Files." It can be found on the bottom right-hand
corner of Android
Studio as a collapsed, vertical pane.
Saving Data on Android
Chapter 3: SQLite Database
raywenderlich.com
57
Once in the Device File Explorer:
• Expand the
Do'stlaringiz bilan baham: