How to download a database and insert it into the app?

Asked

Viewed 137 times

0

The app downloads the database according to the user’s status and inserts it into the database.

1 answer

1

You don’t do that. The Assets is for static features, available during application construction. You should save custom or dynamic data to your device, not APK.

Depending on what you intend to do, there are different preferred approaches. Take a look at official guide to decide the best for your case.

  • The intention is to download a database file to the internal or external storage. How does it do? And how do I have access? Which way? Example: /sdcard0/

  • Did you take a look at the link? Also, see this answer here, that has some examples.

  • The explanation is just how to access a file stored in the storage. My biggest doubt is how to download a database stored on a website. And insert the database into the app.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.