I am using this code to save the image:

--
String fileURL = Media.insertImage(getContentResolver(), bitmap,
"KidsPaint", "Picture");

if (fileURL != null) {
  Uri uri = Uri.parse(fileURL);
  sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE,
uri));
}
--

However, the result is pretty inconsistent. On my Nexus One - it goes
to the Gallery app, and on HTC Hero, it goes to the Gallery app but
does not show up until the device is rebooted. When I am testing on
HTC Jetstream Honeycomb tablet, it goes into the SD Card Camera folder
but does not show up at all in the Gallery app (and even reboot does
not help).

What have I done wrong and what's the best way to save a picture to
the Gallery app?

Thanks for advice!

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

Reply via email to