sql server - Exchanging data between Android SQL-Lite and SQL Sever without using webserive -
sql server - Exchanging data between Android SQL-Lite and SQL Sever without using webserive -
i want create android app gets info user in offline mode , stores them on local sql-lite database. later when phone in online mode, user can click "sync" button , info stored on local sqlite database should uploaded database on central server.
the question is, how can implement without using webservice? ittia db sql allow have replication between 2 databases i'm looking built in sqllite or sqlserver feature implement replication or more, 2 way replication.
thanks
put local db behind content provider, , allow content provider handle offline , sync.
take @ google iosched how maintain info in sync, different scenario, gives ideas , best practices.
in case, content provider can replay transactions remote db when network connection becomes available, or may save transactions in little sqlite db, , send "update" db server. on server, apply changes. depending on end db, different approaches can used.
android sql-server sqlite replication database-replication
Comments
Post a Comment