"how to put existing database in the .apk file?" Code Answer


i found a good example of this: using your own sqlite database in android applications

basically, you export the created database as an sql-file and store it in the assets-folder. on the first program start, you import the data of the file into your final database.

i think it's the best approach, however your data will be there twice in the apk and the db, using some more storage space.

By Keith Sirmons on January 15 2022

Answers related to “how to put existing database in the .apk file?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.