getting Image ThumbNail in Android

前端 未结 4 1462
北荒
北荒 2020-12-28 08:52

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

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-28 09:22

    Using MediaStore.Images.Thumbnails you can query and get two kinds of thumbnails: MINI_KIND: 512 x 384 thumbnail MICRO_KIND: 96 x 96 thumbnail.

    The advantage of using this call is that the thumbnails are cached by the MediaStore. So retrieval would be faster if the thumbnail was previously created.

提交回复
热议问题