To receive information about changed contacts:
Use the method onContactChange
to receive notifications
about changes to contacts, and store the returned list of contact
information in the ContactChange
array. Use the attributes
of the ContactChange
class to retrieve information
about the changed contacts, such as UID, list name, and change type.
//Receive contact change notifications and retrieve information about changed contacts public onContactChange(ContactChange[] changes) { for(int i = 0; i < changes.length; ++i) { System.out.println("Index " + i + " contact UID = " + changes[i].contactUID); System.out.println("Index " + i + " contact list name = " + changes[i].contactListName); System.out.println("Index " + i + " contact change type = " + changes[i].changeType); } }