Android的没有发现异常文件 [英] Android file not found exception

查看:326
本文介绍了Android的没有发现异常文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这意味着什么?其他细节:-The文件不存在在指定的位置

给出文件的路径:

  MFILE =新的文件(Environment.getExternalStorageDirectory()+/ DCIM / X /,MOV_0022.mp4);
mOutputFileUri = Uri.fromFile(MFILE);
mOutputFileUri.toString()java.io.FileNotFoundException:/file:/mnt/sdcard/DCIM/x/MOV_0022.mp4:打开失败:ENOENT(没有这样的文件或目录)


解决方案

检查您的SD卡安装在PC机。同时使用2个应用程序,您不能访问的SD卡。如果您有它安装到PC上,然后卸载它。

What does this imply? Additional details: -The file does exist in the specified location.

The path of file given:

mFile = new File(Environment.getExternalStorageDirectory()+"/DCIM/x/", "MOV_0022.mp4");
mOutputFileUri = Uri.fromFile(mFile);
mOutputFileUri.toString()

java.io.FileNotFoundException: /file:/mnt/sdcard/DCIM/x/MOV_0022.mp4: open failed: ENOENT (No such file or directory)

解决方案

Check if your SDCard is mounted on to PC. You cannot access SDCard simultaneously using 2 applications. If you have mounted it to PC, then unmount it.

这篇关于Android的没有发现异常文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆