我在 raw 文件夹中有一个文本文件,现在我想将它保存在 android 平台的内部存储中的某个位置,以便它不可访问。
请如果有人可以帮助我。提前谢谢。
像这样的东西应该工作
InputStream is = new FileInputStream("path_to_your_file");
FileOutputStream fos = openFileOutput("your_file", Context.MODE_PRIVATE);
// read from InputStream and write ot OutputStream
有关内部存储的更多信息