[英]How to save a large file on external storage at Installation in Android?
I am creating an Android App that uses the MapsForge library to show a map. 我正在创建一个使用MapsForge库来显示地图的Android应用程序。 The Map view in MapsForge shows data from a large file. MapsForge中的Map视图显示来自大文件的数据。 Once this file is present, it will only be read, and never edited. 一旦该文件存在,它将只被读取,并且从不编辑。
While developing, I am manually copying the file to the external storage. 在开发时,我手动将文件复制到外部存储。
How do I make the apk contain this file, and make sure that at the installation of the APP, this file will be written to the external storage? 如何让apk包含此文件,并确保在安装APP时,此文件是否会写入外部存储?
If the APK contains the file, and you write it to external storage, it will be both in the APK and on the external storage. 如果APK包含该文件,并且您将其写入外部存储,则它将同时位于APK和外部存储中。 You do not want that. 你不希望出现这种情况。
You want to either: 你想要:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.