Hi

I want my app to be notified when contacts are edited. I've registered
a contacts observer, but it seems to trigger repeatedly even when I am
not touching the contacts. Any idea why? Code is like:


Handler handler = new Handler();
ContentObserver myObserver = new MyActivity.ContactsContentObserver
(handler,this);
ContentResolver resolver = getContentResolver();
Uri contacts =  People.CONTENT_URI;
resolver.registerContentObserver(contacts,true, myObserver);

..ContactContentObserver is a simple class extended from
ContentObserver

I also tried registering for updates on single person, and I got the
same effect
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to