I am building an Android app which will take some data and images from user and store them in a local SQLite DB. What I am looking for is a way by which I can replicate this DB to a MySQL DB on my server.
I looked on the Internet for the answer but there isn't a proper solution to it. Though the most common answers I found were SymmetricDB and setting up a web service. I am still confused which route to take.
The SQLite DB may also at need, have to pull updated data from the MYSQL DB, so I guess the better word to use is Sync rather than Replicate.
Yes of course, its Sync.
You have to create Web Service
for that.
JSON
object of your data using JSONObject
and JSONArray
class.Web Service
that might be in PHP
or whatever you prefered.MySQL
database.Web Service
that displays your data in JSON
Format.You have to take care about Data Confiction. for that you have to take one that store some value both side like last sync date/time.
PHP JSON Parsing
.If there is any problem then you can free to ping.
Happy Syncing.
Thank you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With