getting Image ThumbNail in Android

nitin tyagi picture nitin tyagi · Jan 1, 2013 · Viewed 33.7k times · Source

I need Thumbnail of an image . I only know about the name of image which is stored in SD card . Can anyone help me.

Answer

Chirag picture Chirag · Jan 1, 2013

Try this.

final int THUMBSIZE = 64;

Bitmap ThumbImage = ThumbnailUtils.extractThumbnail(BitmapFactory.decodeFile(imagePath), 
                    THUMBSIZE, THUMBSIZE);

Refer this for more details.