0
我需要从SD卡检索图像,我用下面的代码。问题SD卡在SD卡
String[] projection = {MediaStore.Images.Thumbnails._ID};
cursor = managedQuery(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI,
projection,
null,
null,
MediaStore.Images.Thumbnails.IMAGE_ID);
columnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Thumbnails._ID);
int size = cursor.getCount();
但游标总是返回Zero.so我无法从SD卡获取图像。什么是解决方案。
您是否在SD卡文件夹中添加图像? – David 2010-11-24 15:46:49