Reputation: 13506
Is it possible to get a thumbnail from video file specified by a file path/name and stored in a custom folder on Android 2.1?
Upvotes: 1
Views: 625
Reputation: 10622
yes you can do this...
private Bitmap getImage(int id) {
Bitmap thumb = MediaStore.Video.Thumbnails.getThumbnail(
getContentResolver(),
id, MediaStore.Video.Thumbnails.MICRO_KIND, null);
return thumb;
}
Upvotes: 2