Devdatta Tengshe
Devdatta Tengshe

Reputation: 4075

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?

Upvotes: 1

Views: 698

Answers (1)

Jan Schejbal
Jan Schejbal

Reputation: 4033

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:

Upvotes: 4

Related Questions