Hi. i am trying to listen out for for changes made in ContactMethod
table using the code below:
mPeopleObserver = new ContactContentObserver(mHandler);
this.getContentResolver().registerContentObserver(Contacts.ContactMethods.CONTENT_URI,
true, mPeopleObserver);
It doesnt seem to work whenever i change a contacts email address or
instant messanger details.
i have a conentObserver method below that should catch and notify me
of any changes made to the table but it doesnt.
/**
* ContentObserver to get the call backs for changes in the
onChange
method
*/
private class ContactContentObserver extends ContentObserver
{
public ContactContentObserver(Handler handler) {
super(handler);
}
public void onChange(boolean selfChange) {
// Excute Aggregation process
try {
Log.d("AggregationService", "onChange
fired by content observer");
AggregateContacts();
} catch (Exception e) {
e.printStackTrace();
}
}
}
Cheers in advance.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en