Skip to content Skip to sidebar Skip to footer

Sync Remote Database (mysql) With Sqlite Database And Vice Versa

In my android app I need to sync SQLite database with remote database (mysql) and vice versa.... the concept is something like when application launches application should sync da

Solution 1:

you can write an android service which can be called when the applicaiton starts. this service will start syncronization in the background while the application can fetch data from the database.

UPDATE

here is a sample tutorial for database.

Solution 2:

  1. Log all your statements in a table
  2. Send them to the server via http
  3. Execute statements there on the server (ensure that there is no duplication by giving statements a serial no)

Post a Comment for "Sync Remote Database (mysql) With Sqlite Database And Vice Versa"