Periodically my application must update the database.
This update may not be automatic. When user access the app, there will be a check if there is a new database available. After verification, if there is a new version will prompt the user if they want to update the database. Given permission, start the download of the new file sqlite, which will replace the old file.
The new file has the same structure as the old file, but with more rows in the table. In addition, the database contains only one table.
I’m looking for a viable solution to two days and found nothing that could help me.
Thank you in advance for attention!
You can’t change files that are distributed inside your
.apk. You will need to download this additional file somewhere else, then in your code you will have to decide which one to use at the time it is opened.