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 Beginners" group.
NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
To unsubscribe, reply using "remove me" as the subject.