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