我無法創建我在模擬器的SD卡中放置的視頻文件的縮略圖。 我得到的消息:在SD卡中創建視頻文件的縮略圖
03-16 14:31:32.646: ERROR/MiniThumbFile(19847): Unable to create .thumbnails directory /mnt/sdcard/DCIM/.thumbnails and a null pointer exception.
if (convertView == null) {
iView = new ImageView(mContext);
System.out.println("The path to the video" + filePath);
Bitmap map = MediaStore.Images.Thumbnails.getThumbnail(
getContentResolver(), position,
MediaStore.Video.Thumbnails.MICRO_KIND, null);
System.out.println("map^^^^^^^" + map);
iView.setImageBitmap(map);
iView.setLayoutParams(new GridView.LayoutParams(96, 96));
iView.setPadding(8, 8, 8, 8);
} else {
}
return convertView;
整個logcat的請。 – Deva 2012-03-16 09:07:11