I replaced the ACTION_MEDIA_SCANNER_SCAN_FILE intent by
ACTION_MEDIA_SCANNER_SCAN_FILE intent for saving, and it works for HTC
Hero issue! Now Gallery will be refreshed when we save the file.

sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE,
Uri.parse("file://" + Environment.getExternalStorageDirectory())));

//      sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE,
uri));

It still does not work for HTC Jetstream (the pictures do not show up
in Gallery). I am not too sure whether it is a good solution though.

-- 
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

Reply via email to