I solved my problem using:
mScanner = new MediaScannerConnection(hacerFoto.this,
new MediaScannerConnection.MediaScannerConnectionClient() {
public void onMediaScannerConnected() {
mScanner.scanFile(name, null /* mimeType */);
}
public void onScanCompleted(String path, Uri uri) {
if (path.equals(name)) {
mScanner.disconnect();
}
}
});
mScanner.connect();
I don't know why I can't use ACTION_MEDIA_SCANNER_SCAN_FILE ...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---