Hello my fellow developers, My mission is to keep a database of media (say pictures) that have been created since a certain time so that I can associate my own metadata with them.
One way of doing this that I have tried is to create a BroadcastReceiver and wait for the "com.android.camera.NEW_PICTURE" action. This works well since I am able to get the URI of the photo from the received intent; however, I can't figure out how to tell when a photo has been deleted or changed. Another way I have tried is to set up a ContentObserver on the Media.Images.EXTERNAL_CONTENT_URI and wait for changes to that dataset. My issue with *this* method is that my observer is notified on a change to the dataset, but it is oblivious to the *nature* of the change. I must then iterate over the whole dataset to discover the change. I was wondering if anybody could help me figure out a way to observe changes and update my database accordingly. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---