I have a remote SQL database (i.e. a database stored in a server). I am developing an Android app that regularly stablishes a connection to copy all the remote database's tables (and their contents) to a local database using SQLite.
Is there any standardized way to perform this action within the Android SDK?
What I've though:
I thought about requesting the remote database's contents in JSON format, then parsing that JSON code in Android, then including it in the local database using SQLite. Don't know how efficient this is for large amounts of data, neither if there exists a better (less painful) approach.
Aucun commentaire:
Enregistrer un commentaire