sách gpt4 ăn đã đi

安卓 - FileNotFoundException

In lại 作者:搜寻专家 更新时间:2023-11-01 07:58:04 28 4
mua khóa gpt4 giày nike

sai lầm:

E/BitmapFactory﹕ Unable to decode stream: java.io.FileNotFoundException: /file:/storage/sdcard0/Pictures/JPEG_20140728_190726_1641148246.jpg: open failed: ENOENT (No such file or directory)

但是我可以在F:\Pictures\JPEG_20140728_190726_1641148246.jpg(移动存储)中看到文件

我正在使用来自 Taking Photos Simply | Android Developers 的方法, 但如果你需要看代码,我可以复制这里

我还添加了权限:



我想要的只是使用相机 Intent 拍照,保存图像,将路径保存到数据库,然后在 map 上显示...

我在 android 4.4.2 (CM) 上测试

câu trả lời hay nhất

从你的例子中:

mCurrentPhotoPath = "file:" + image.getAbsolutePath();

尝试使用:

mCurrentPhotoPath = image.getAbsolutePath();

关于安卓 - FileNotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25001074/

28 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress