Skip to content Skip to sidebar Skip to footer

Thumbnail Returns Null On Android Above Version 4.0

I am getting the samethis issue public class MainActivity extends Activity { ImageView imgVie; Bitmap bmp,extBmp; @Override protected void onCreate(Bundle save

Solution 1:

If your video is on the external storage requires permission <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

Solution 2:

1)- Sometime if video quality is poor , video is corrupt or format is not supported it returns null bitmap.

2)- createVideoThumbnail(String filePath, int kind) supports MINI_KIND or MICRO_KIND as kind only in 4.0+.

see http://developer.android.com/reference/android/media/ThumbnailUtils.html. try one of those...

3)- Some devices can't play and can't create thumbnails for videos, that placed on internal memory. Check it, and move your video to SD Card before thumbnails creating.

4)Check your path of the file.

Post a Comment for "Thumbnail Returns Null On Android Above Version 4.0"