[android-developers] Accessing Video Thumbnail
Hi,
I am having trouble getting a thumbnail for a video.
I am targeting 2.1 update 1. (API level 7)
I would like to use MediaStore.Video.Thumbnails.getThumbnail. This works perfectly if the SD Card has been mounted / unmounted.
However, when a video is first created I would like it to be scanned (by the MediaScanner I believe) so it is indexed and I can show a preview immediately using the getThumbnail method. Looking at the source I suspect this is a device specific class.
I have tried creating a class that implements MediaScannerConnectionClient but onScanCompleted never seems to get called. Has anyone had any success making thumbnails like this?
Any direction would be really helpful :)
Regards,
Julius.
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home