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 database from remote database.. when I perform some action data should save into sqlite and then sync it to remote database.. Please guide how to perform this task. Thanks in advance....
-
Answer:
you can write an android http://developer.android.com/reference/android/app/Service.html which can be called when the applicaiton starts. this service will start http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/ in the background while the application can fetch data from the http://www.vogella.de/articles/AndroidSQLite/article.html. UPDATE here is a sample http://ashwinrayaprolu.wordpress.com/2011/03/16/custom-content-provider-in-android/ for database.
param at Stack Overflow Visit the source
Related Q & A:
- How to Upgrade Sqlite DataBase to Next Version in Android?Best solution by Stack Overflow
- How to synchronize Server Database and Local SQLite?Best solution by Stack Overflow
- how to show data in textview from sqlite database in android?Best solution by Stack Overflow
- How to Migrate from SQLite DB to MySQL?Best solution by Stack Overflow
- How to protect data in SQLite database?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.