Hi,

I got this working in the end using the advice here:
http://www.mail-archive.com/[email protected]/msg24164.html

Part of the problem was that I was looking for the wrong media type or more 
correctly, I was telling the scanner it was of a different mime type so it 
wasn't showing when I searched for it.

Hope that helps someone...

Cheers,
Julius.

On 25/11/2010, at 8:26 AM, Julius Spencer wrote:

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

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