Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ImageView iv = (ImageView) findViewById(R.id.imageView1);
- String filepath = "android.resource://" + getPackageName() + "/" + R.raw.videotest;
- Bitmap bm = ThumbnailUtils.createVideoThumbnail(filepath, Thumbnails.MINI_KIND);
- iv.setImageBitmap(bm);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement