Android database sync with bidirectional

I've done a lot for this, but I haven't found anything useful. I just want to know if it is possible to synchronize a remote database with an android sqlite database using SyncAdapter and content providers. I don't want to use another solution such as web services or sending the database file to the server, and if possible I need to implement rules to resolve conflicts. Thank.

+2


source to share


1 answer


You will still have to use something like web services to combine them, there is no automatic mechanism to do this like SQL replication or anything else. All the SyncAdapter provides is a periodically managed system that is designed to keep data synchronized. You have to write all the code to talk to the local database and the remote database and manage the movement of data between them.



+5


source







All Articles