Exercise: Using a database from an Android Application
In this exercise you must use an SQLite database from an Android application
...
More info
http://developer.android.com/guide/topics/data/data-storage.html#db
Getting ready
- Make a database design (pen + paper): only one table with 3-4 columns, including an ID column.
- Make an DBAdapter class (ordinary Java class, NOT an Activity), Lee page
274.
Making Activities
- Program an Activity with buttons like: ShowAll, New Entry, and Search.
- Program the ShowAll Activity.
- Program the New Entry Activity.
- Program the Search Activity
Foreign keys
Make another SQLite database with 2 tables, and check
if foreign keys work or not