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 contains public static fields that are used with the app’s ContentProvider and ContentResolver. The nested Contact class defines static fields for the name of a database table, the Uri used to access that table via the ContentProvider and the names of the database table’s columns, and a static method for creating a Uri 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.