【发布时间】:2012-02-26 21:19:19
【问题描述】:
根据 Android 开发文档,您不能只打开任何您想要的文件 ("Open a private file associated with this Context's application package for writing.")。
但是,当我希望我的应用程序读取其他应用程序创建的文件时怎么办?假设我在 /data/app_1/hello.txt 中有一个文件,但我的应用程序与它无关,因为我的应用程序名为 app_2,我如何仍然能够打开这个文件(并写回它)?
【问题讨论】: