The three classes,
ContactDataSource, are used in the
ContactActivity class to implement the saving of contact data to the database. This will require implementing several new methods and modifying some existing methods. Because the methods to retrieve contacts have not been implemented yet, the update functionality will be only partially implemented at this time.
The first step is to provide an association between the
ContactActivity class and a
Contact object. This is implemented by declaring a private variable in the
ContactActivity class. Enter the following code after the class declaration and before the
private Contact currentContact;
Next associate ...