Getting change details from content provider notifications

by MannyNS » Thu, 11 Jun 2009 00:45:43 GMT

Sponsored Links
 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?




Other Threads

1. When will Android Phone be released?

Does anyone know when Android phone will be released? An estimate
would be great!!

2. problrm in calling activity/plz do solve his problem i am running out of time...

It looks like you are asking 3 questions. My answers...

1. I don't understand why you need to call one activity from your

2. You could add a logo either by adding a imageview to every layout,
or you could extend a layout class that has an imageview in it, then
just specify that layout view in your layout xml (instaed of whatever
your top level container view is).

3. I think you might want to look at Gallery.


3. Unable to start activity

4. gtalkservice.IGTalkSession.logout() causes GTalk Service to crash

5. "Hello, Android!" doesn't get built.

6. About Terms & conditions to submit an application

7. Android's DALVIK failing to build