I am able to display the thumbnail for videoview from video by using following code,
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
retriever.setDataSource(getApplicationContext(), uri);
Bitmap bmp = retriever.getFrameAtTime(2 * 1000000, MediaMetadataRetriever.OPTION_CLOSEST);
BitmapDrawable bitmapDrawable = new BitmapDrawable(getResources(), bmp);
mVideoView.setBackground(bitmapDrawable);
But this mVideoView.setBackground(bitmapDrawable);
method is available from version 4.1.
How to do it for OS version below 4.1?