Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Update database in app from web

I have an app with a database full of information. The user never changes or adds anything to this database. I would like to update the database myself and store it on the web. Then everytime the app loads, it will check the web for a new version. If there is one, it would simply download it and replace it. What is the best way of doing this?

like image 546
Mark Avatar asked Jun 07 '11 13:06

Mark


People also ask

How can I update my apps without Play store?

You can download it from the Google Play Store, then use APKMirror Installer to install or update your apps afterward. Otherwise, grab the APKMirror Installer app from the official APKMirror website. Visit the APKMirror website and search for an app you want to install on your Android device.

How do I change app parameters without app update?

In order to change content dynamically without updating the app, you need to use something like Firebase Remote Config. Read the link it will help you changing the values, content, and what you need without uploading code to Play Store. It works for android and iOS as you need.

Where is a database stored on an Android app?

But by default all the android application store database on internal storage path /data/data/<application_package_name>/databases . And its applicable for all devices rooted or un-rooted.


1 Answers

Someone else will have to tell ya the best way to initiate the actual download, but this blog post may be helpful in figuring out how to install the database once downloaded.

Also, you may find this question I posted earlier useful in determining database versions, basically I'm just parsing the file name to determine version. I'm sure there's an easier way for you though if you're communicating with a server.

like image 58
Nathan Fig Avatar answered Oct 15 '22 09:10

Nathan Fig