9.5 Overview of This Chapter’s Classes
This app consists of nine classes in two packages. Due to the size of this app we overview the classes and their purposes here.
com.deitel.addressbook.data Package
This package contains the three classes that define this app’s SQLite database access:
DatabaseDescription
(Section 9.6)—This class containspublic static
fields that are used with the app’sContentProvider
andContentResolver
. The nestedContact
class definesstatic
fields for the name of a database table, theUri
used to access that table via theContentProvider
and the names of the database table’s columns, and astatic
method for creating aUri
that references a specific contact in the database.AddressBookDatabaseHelper
(Section 9.7
Get Android How to Program, 3/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.