I am trying to use the android.media.ThumbnailUtils class to extract thumbnail videos from a video that is located at the specified path, for this I use the following code,
Bitmap thumb = android.media.ThumbnailUtils.createVideoThumbnail("/sdcard/video/sample.mp4", MediaStore.Images.Thumbnails.MINI_KIND); return thumb;
but throws this exception. java.lang.NoClassDefFoundError: android.media.ThumbnailUtils
Someone suggest some idea to solve this problem.
Thanks.
source share