Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.media.ThumbnailUtils; public class Main { public static Bitmap getVideoThumbnail(String videoPath, int width, int height, int kind) { Bitmap bitmap; bitmap = ThumbnailUtils.createVideoThumbnail(videoPath, kind); bitmap = ThumbnailUtils.extractThumbnail(bitmap, width, height, ThumbnailUtils.OPTIONS_RECYCLE_INPUT); return bitmap; } }