This contact application use a private database with one table. its database name isContactDB, with one table name mycontact. Because we want to study from simple, we use a minimal field input. below is a structure of mycontact table:
All manipulation query for this table handled by DBHelper class, include table creation, querying, updating, and deleting record.
At first Activity, it just instantiate the DBHelper wrapper with it context as a parameter. The wrapper will check if ContactDB is exist. if not, it will create the db first and create the table.
The Application will show a contact list first, and from the screen User will have choices to do:
Was this information helpfull?