Hi,

after taking photo using intent I'd like to have thumbnail of it.
        Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
        Date d = new Date();
        File photo = new File(Environment.getExternalStorageDirectory(),
"pic" + d.getTime() + ".jpg");
        intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo));
        imageUri = Uri.fromFile(photo);
        startActivityForResult(intent, TAKE_PICTURE);

On Android 2.1 it's created just after creating image, but on my
XPERIA x10 mini with Android 1.6 after taking photo and scanning file
(using MediaScanner) there is no new thumbnail.
So I wanted to create own and added to
MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI. That wasn't hard
and seems to be working, but what value should I put in
MediaStore.Images.Media.EXTERNAL_CONTENT_URI in field
MINI_THUMB_MAGIC? Because after media indexing my thumbnail is treated
as normal photo.


Or maybe I'm missing totally something and there is way better method
to get all pictures thumbs, like gallery have than using
MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI. I tried to invoke
somehow media indexing, but I failed in finding how should I do it.


Thanks for any help in advance.

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