mercredi 4 mai 2016

Android: Get SQLite file from server and replace the existing

I have developed an Android app with a local SQLite based database. Now I'm trying to sync this SQLite .db database with a server with a simple file replace - Just to download .db from server and replace the current one.

I have already created an JSON response with true/false just to check if the online .db file is newer than the local .db file so my question is: How to get the .db from the http://ift.tt/26UjLvq and replace the existing Android sqlite .db file from my app.

Aucun commentaire:

Enregistrer un commentaire