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.
Also how do i make the MediaScanner to rescan all the image files or
all video or all music files?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---