Asahi
Asahi

Reputation: 13506

video thumbnail on Android 2.1 (API level 7)

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

Answers (1)

Sujit
Sujit

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

Related Questions