Android 使用MediaStore在SD卡中显示所有图像。图像。缩略图。\u ID

Android 使用MediaStore在SD卡中显示所有图像。图像。缩略图。\u ID,android,thumbnails,Android,Thumbnails,我使用下面的方法在gridview中查看图像。 它显示SD卡中有缩略图的图像。 但我想显示SD卡中的所有图像,而不仅仅是缩略图。 是否有任何方法可以让Android系统为MediaStore.Images.Thumbnails创建缩略图。\u ID使用?首先,urlMediaStore.Images.Media.EXTERNAL\u内容\u URI可以返回所有图像, 然后MediaStore.Images.Thumbnailshas method: public static Bitmap g

我使用下面的方法在gridview中查看图像。

它显示SD卡中有缩略图的图像。 但我想显示SD卡中的所有图像,而不仅仅是缩略图。
是否有任何方法可以让Android系统为MediaStore.Images.Thumbnails创建缩略图。\u ID使用?

首先,url
MediaStore.Images.Media.EXTERNAL\u内容\u URI
可以返回所有图像, 然后
MediaStore.Images.Thumbnails
has method:

public static Bitmap getThumbnail (ContentResolver cr, long origId, long groupId, int kind, BitmapFactory.Options options)
// origid  is the Images.ImageColumns._ID
//groupid is the Images.ImageColumns.BUCKET_ID 
可以返回缩略图

public static Bitmap getThumbnail (ContentResolver cr, long origId, long groupId, int kind, BitmapFactory.Options options)
// origid  is the Images.ImageColumns._ID
//groupid is the Images.ImageColumns.BUCKET_ID