我想创建一个任何其他应用程序都无法访问的文件夹。
这有可能吗?如果是,请提供如何实现此功能的解决方案。
最佳答案
像这样使用内部存储:
String FILENAME = "hello_file";
String string = "hello world!";
FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos.write(string.getBytes());
fos.close();
关于android - 创建任何其他应用程序无法访问的文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5632769/