The notifications is for a specific URI, so you can choose to be notified when *any* contact changes (by using a URI like "content://contacts/people"), or specifically when the contact info for Starbuck is changed (by using a URI like "content://contacts/people/1")
On Mon, Jun 15, 2009 at 10:53 AM, MannyNS <[email protected]> wrote: > > Anyone? > > On Jun 10, 5:38 pm, MannyNS <[email protected]> wrote: > > Using ContentResolver and ContentObserver, it is possible to receive > > notifications in the function onChange() when some data is changed > > within the content provider. However, I fail to see if there is a way > > to see the URI which triggered the notification. > > > > For instance, if I want to play a sound when someone deletes "Kara > > Trace" from my address book or whatever - how do I do that, if not by > > having another copy of the whole content provider dataset, and then > > comparing the old dataset copy with a new one? > > Can someone confirm me that the hard way is the only way? > > > > Thanks. > > > > P. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

