Get thumbnail Uri/path of the image stored in sd card + android

前端 未结 8 695
自闭症患者
自闭症患者 2020-11-28 04:46

SDK version - 1.6

I am using following intent to open android\'s default gallery:

Intent intent = new Intent();
                inte         


        
8条回答
  •  隐瞒了意图╮
    2020-11-28 05:19

    This solution is work on me!

    final int THUMBSIZE = 128;
    
    Bitmap thumbImage = ThumbnailUtils.extractThumbnail(
                             BitmapFactory.decodeFile(file.getAbsolutePath()), 
                             THUMBSIZE, 
                             THUMBSIZE);
    

提交回复
热议问题