Android: How do I get thumbnail from a Video (Uri)
问题 I want thumbnail from a video at any specific position. I am using ThumbnailUtils in order to get thumbnail from video uri and assigning to bitmap but I am getting null value on bitmap. Any reasons how this is happening and how do I fix this? selectedVideoUri = data.getData(); bitmap = ThumbnailUtils.createVideoThumbnail(getRealPathFromURI(videoUri), MediaStore.Images.Thumbnails.MINI_KIND); public String getRealPathFromURI(Uri contentUri) { String res = null; String[] proj = { MediaStore