Does android support any library to synchronize the sqlite local database to a remote DB?. Or this should be done by hand by the programmer?. Thanks.

Edit: Does Android give no support, maybe a protocol for sending the data or something, that can be use to get the data in the remote server?. Like sending the database objects in XML or JSON. I'm just wondering if is there something already implemented that can be use to send the data every x seconds, encrypted maybe?. Also that deals when the data cant be sent because there is no network available or wifi.. and tries to send the data every x time in background. Things like that.

有帮助吗?

解决方案

Leaving a remote SQL database server with public interface open, especially accessible by multiple Android clients, is probably not advisable because it may have security implications. In this instance, I would usually write a web service that accepted the database objects in XML or JSON form and then write them to the database.

There are many libraries for both web service creation and database CRUD operations for many languages, but I'm not sure which language you're planning to use on the remote web application (if any). Depending on the language you're using for the remote web application, you may be able to find a library that will create a web service and write values to the database all-in-one. Otherwise, you can get libraries for both web service creation and database operations and integrate them together.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top