How Can I Regularly Update A Database Of Content On An Android App?
Solution 1:
Instead of loading a new version of the application every time, you should implement a database on a parrot information server. Then the application (the client) will ask the server to receive parrot information. Just implement a mySQL database and a PHP page that returns the information in JSON format. Then through the application you will make a request to the server using the volley library or okHTTP and enter the information into a list. As there are also pictures, use the glide library to download the images. Also remember to upload small images to the server. This way the app is always up to date
Solution 2:
The easiest way is to update the app on the play store with the newest db, and let auto-update update the app with the new db.
Next easiest is to have a nightly (or whatever frequency) service download a new db and replace the old one from your servers
Solution 3:
If you want it to be as easy as possible to update for everyone I would recommend a little app that has two main activities. One for displaying the entries of the database (and maybe also giving the ability to delete the entry) and another with a template to fill with all information and the image.
Then like Raffaele D'Arco explained use a little server. You could also delay the updates to be in a 5 minute routine or the like so that you put as little stress as possible on the server.
Solution 4:
There are multiple good ways to update the interface without updating the app constantly.
- Use a database which the app will download after a fixed amount of time which will be located on the server.
- Secondly, if you have a website you can convert the web pages to XML or JSON or something like that and can update the app UI as per the data downloaded from the website.
I would recommend the second option as it is quite easy than the first one...
Post a Comment for "How Can I Regularly Update A Database Of Content On An Android App?"