文件存在,用FileInputStream却抛出FileNotFoundExcepition异常
我手机有Root权限,
访问/data/data目录下的某个文件
File.exist()调用返回True,用FileInputStream却有FileNotFoundExcepition异常
代码段如下:
File file = new File(strPath);
if(!file.exist())
{
return;
}
else
{
FileInputStream in = new FileInputStream(file);// 这里抛出FileNotFoundExcepition异常,file换成路径strPath同样抛出异常,很奇怪
}
高手解释一下原因?如何克服呢?
多谢啦