On Mon, Sep 7, 2009 at 9:30 AM, karthikr<[email protected]> wrote: > > Hi Guys, > > Im trying to open an image edit it and save it back. > > And im using the below code, > > mScanner = new MediaScannerConnection(this, new > MediaScannerConnection.MediaScannerConnectionClient() { > public void onMediaScannerConnected() { > mScanner.scanFile > (fileName, null /* mimeType */); > } > public void onScanCompleted(String path, Uri uri) { > if (path.equals(fileName.toString())) { > mScanner.disconnect(); > } > } > }); > mScanner.connect(); > > I do get the Uri from onScanCompleted, but the thumbnail is not > updated in the gallery.
Gallery thumbnails are currently handled by the gallery app itself, not by the media scanner. It sounds like the gallery app doesn't realize that the file has changed. You could force it by saving the updated file with a new name and deleting the old one. That would probably be safer too. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

