【问题标题】:save raw file into internal storage将原始文件保存到内部存储
【发布时间】:2011-05-10 12:51:21
【问题描述】:

我在 raw 文件夹中有一个文本文件,现在我想将它保存在 android 平台的内部存储中的某个位置,以便它不可访问。

如果有人可以帮助我,请。提前谢谢。

【问题讨论】:

  • 能否在标题中添加更多信息?两行还不够……

标签: android storage internal


【解决方案1】:

这样的东西应该可以工作

InputStream is = new FileInputStream("path_to_your_file");
FileOutputStream fos = openFileOutput("your_file", Context.MODE_PRIVATE);
// read from InputStream and write ot OutputStream

更多关于InternalStorage的信息

【讨论】:

    猜你喜欢
    • 2023-03-10
    • 1970-01-01
    • 2012-03-16
    • 2013-02-19
    • 2011-10-10
    • 1970-01-01
    • 2023-03-08
    • 1970-01-01
    • 2018-02-20
    相关资源
    最近更新 更多