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. How many times a song has played?

I've searched the list and the documentation but have not found anything
that tells you how to tell how many times a song has played.  Is there
something in the OS that provides that information or would it need to be
done in the individual application?


2. After ADC 2 feedback

When downloading something we see a dialog box showing the number of
percentage that downloaded
Sometimes when we pressed save or print or other option in a document
software sometimes the full document software get hanged without
showing any status. That is very irritating indeed.

After the submission deadline ADC2 is going through some processes.
1) Filtering the submitted entries begin
2) Listed the filtered entries for the contest.
3) ADC2 judge application in the market.
4) 1st phase judging started
5) 1st phase judgin ended
6) List Qualified entries for phase 2
7) 2nd phase started
8) 2nd phase ended.
9) Result published

I think, google can easily announce these status in the android-
developers blog stage by stage. So that we the participants can see
which process is now going on rather than just seeing a hanged stage
of the contest.
So, my earnest request to Google, to give us some sort of these feed
back of the contest process.
It will be a great pleasure.


3. Development phones ??

4. listview orientation

5. Problem with PNG as xml Background but not in JAVA!

6. OpenGL ES application on WebView

7. trying to get phone number from BroadcastReceiver