【问题标题】:Emulator not able to find thumbnails files模拟器找不到缩略图文件
【发布时间】:2013-01-30 08:32:42
【问题描述】:

感谢您的帮助。

我在模拟器上推送了一些 Jpg,我从 Media Provider 工具运行 SDCard Scan, 所以推送的图片在图库中正确显示。

我有一个查询“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)

非常感谢您的帮助,非常感谢

【问题讨论】:

  • 你能确认这些文件确实存在于模拟器上吗?在同一个文件夹中,并且具有完全相同的名称?
  • @FoamyGuy 实际上我无法通过 DDMS 在模拟器上找到缩略图文件,显然它们不存在.....

标签: android gallery jpeg thumbnails image


【解决方案1】:

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

还是谢谢!!!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-17
    • 1970-01-01
    • 2014-03-16
    • 2018-03-11
    • 2013-12-10
    • 2021-09-19
    相关资源
    最近更新 更多