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. emulator: ERROR: the user data image is used by another emulator. aborting (cont'd)

It is possible, and quality patches are gladly accepted, to be sent at

The code you're looking for is at external/qemu/android/utils/filelock.c


2. Problem including pauses with Intent.CALL

Hi folks,

I'm trying to send DTMF tones to an IVR including them in a tel: uri
with a Intent.CALL.   To include pauses i'm trying to use a tel: uri
with special characters (i.e. tel:+1666666666,,,,,,555555555).

The problem is the special characters are stripped and the phone tries
to place the call ignoring them (i.e. tel:+1666666666555555555).

Any explaination or workaround to make this work?

I'm using HTC Hero (Android 1.5)

Thank you very much,


3. Problem launching my own (camera) application on press of Camera-button (part 2)

4. Why Android eclair response is slower than the donut version?

5. Hashtable Serialization (Server/Client App)

6. Battery capacity not updated

7. help please