为什么内部存储是只读的? [英] Why internal storage is read only?
本文介绍了为什么内部存储是只读的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
:
in manifest:
<uses-permission android:name="android.permission.READ_INTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE"/>
并执行此操作:
and executing this:
File f = new File("/hala");
f.createNewFile();
或
or
File f = new File("hala");
f.createNewFile();
i得到:
i got:
java.io.IOException: open failed: EROFS (Read-only file system)
为什么?请帮忙。
Why? Please help.
推荐答案
为什么你没有按照推荐的方法(使用内部存储 [ ^ ])?
Why didn''t you follow the recommended approach (Using the Internal Storage[^])?
这篇关于为什么内部存储是只读的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文