【发布时间】:2015-11-10 13:34:55
【问题描述】:
我从开发者页面复制了一个示例:
String FILENAME = "hello_file";
String string = "hello world!";
FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos.write(string.getBytes());
fos.close();
但它说:
异常 java.io.filenotfoundexception on : openFileOutput(FILENAME, Context.MODE_PRIVATE)
【问题讨论】:
-
我猜你没有访问文件的权限。
-
我怎样才能获得许可?
标签: java c# android eclipse android-studio