如何在存储中存储文件并使其只读?如何设置File的权限?

时间:2016-09-15 07:08:52

标签: android

如何将File存储在存储空间中并将其设为只读?如何设置File的权限?

File folder = new File(Environment.getExternalStorageDirectory() + "/AFolder");
if (!folder.exists()) {
    folder.mkdir();
    Log.e(String.valueOf(folder),"Created......" );
}
bval = folder.setReadOnly();

0 个答案:

没有答案