模拟器无法找到缩略图文件

时间:2013-02-14 14:02:38

标签: android gallery jpeg thumbnails image

谢谢你的帮助。

我在我的模拟器上推了一些Jpgs,我运行了SDCard Scan表单的Media Provider工具, 所以推送的图片在画廊中正确显示。

我有一个查询'MediaStore.Images.Thumbnails'的活动

光标正常工作,它找到缩略图的路径。

但是当我运行应用程序时,Logcat向我显示他实际上无法打开路径中的文件:

02-14 13:45:08.015: E/BitmapFactory(931): Unable to decode stream:    java.io.FileNotFoundException: /mnt/sdcard/DCIM/.thumbnails/1360429937982.jpg: open failed:    ENOENT (No such file or directory)
02-14 13:45:08.046: E/BitmapFactory(931): Unable to decode stream: java.io.FileNotFoundException: /mnt/sdcard/DCIM/.thumbnails/1360503332805.jpg: open failed: ENOENT (No such file or directory)
02-14 13:45:08.076: E/BitmapFactory(931): Unable to decode stream: java.io.FileNotFoundException: /mnt/sdcard/DCIM/.thumbnails/1360525871295.jpg: open failed:   ENOENT (No such file or directory)
02-14 13:45:08.095: E/BitmapFactory(931): Unable to decode stream: java.io.FileNotFoundException: /mnt/sdcard/DCIM/.thumbnails/1360525870839.jpg: open failed: ENOENT (No such file or directory)
02-14 13:45:08.135: E/BitmapFactory(931): Unable to decode stream: java.io.FileNotFoundException: /mnt/sdcard/DCIM/.thumbnails/1360525870385.jpg: open failed: ENOENT (No such file or directory)

非常感谢你的帮助

1 个答案:

答案 0 :(得分:0)

行, 问题解决了,当我重新启动模拟器时,我要求“擦除用户数据”; 而不是再次从媒体提供商工具运行DCard Scan,目前一切正常。

非常感谢!!!