简体   繁体   中英

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. The Map view in MapsForge shows data from a large file. 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?

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. You do not want that.

You want to either:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM