I need to display video thumbnails using Universal Image Loader , any help pleaz, i can get the thumbnail bitmap from this
Bitmap b= ThumbnailUtils.createVideoThumbnail(
"",MediaStore.Images.Thumbnails.MICRO_KIND);
but how display it in imageloader because if i display the bitmap the adapter will make the mobile slow,
You have two way :
A: Use simple method to set adapter
Create a method in universal class
public void setImageThumbnail(String videoPath, ImageView imgView) {
Bitmap b=ThumbnailUtils.createVideoThumbnail(videoPath,MediaStore.Images.Thumbnails.MICRO_KIND);
imgView.setImageBitmap(b);
}
use this method where you want.
B :You can also use Lru-cache for adapter.
http://eclipsesource.com/blogs/2012/07/31/loading-caching-and-displaying-images-in-android-part-1/
for more detail you can use below link: http://developer.android.com/training/displaying-bitmaps/process-bitmap.html
It will help for you.