开发者

Android bi-directional sqlite database synchronization

开发者 https://www.devze.com 2023-03-16 00:03 出处:网络
I\'ve done a lot of search about this but I don\'t found anything really useful. I just want to know if it is possible to sync a remote database with an android sqlite database using SyncAdapter and c

I've done a lot of search about this but I don't found anything really useful. I just want to know if it is possible to sync a remote database with an android sqlite database using SyncAdapter and content providers. I don't want to use another solution like webservices or sending the database file to server, and if pos开发者_StackOverflowsible I need to implement rules to resolve conflicts. Thanks.


You'll still have to use something like web services to wire them together, there is no automatic mechanism to do that like sql replication or anything. All the SyncAdapter provides is a system managed periodically run service that's intended to be used for syncing data. You have to write all the code to talk to the local database and the remote database and manage moving the data between them.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号