I thought that the following code will set the Thumbnail to the ImageView. I have Log the path & its correct & dont know what is missing. I am not getting any error but its thumbnail is not set by this code :
imgFile = new File(Path.pathvideoa);
        Bitmap bm = ThumbnailUtils.createVideoThumbnail(
                imgFile.getAbsolutePath(),
                MediaStore.Video.Thumbnails.MINI_KIND);
Log.i(Path.pathvideoa, "" + Path.pathvideoa);
ivA.setImageBitmap(bm);
where, imgFile is the object of class File & ivA is the ImageView
Thanks in advance !
 
                        
use the below code