Android的 - 要传输的数据SQLITE数据库到Web服务器 [英] Android - Want to transfer data from SQLITE db to Web Server
问题描述
我已经开发了Android的离线数据录入的应用程序用户在其中输入所有这些将被保存在sqlite的分贝的细节。
I have developed an offline data entry app in android where the user enters all the details which will be saved in sqlite db.
目前欲从源码传输数据的一天结束分贝到其存储在PostgreSQL的分贝的数据的服务器。我没有找到任何好的答案按我的要求。
At the end of the day I want to transfer data from the sqlite db to a server which stores the data in PostgreSQL db. I didn't find any good answer as per my requirement.
推荐答案
您可以使用Web服务将数据发送到服务器。
You can use web services to send data to server.
您可能需要选择将是这种方法,有服务托管你的服务器上(可以写在任何编程语言)来检索/职位数据库中的数据和发送数据,无论是JSON / XML格式(我做了JSON格式)到应用程序。在你的应用程序中使用到的HTTPClient GET / POST数据到业务服务器上托管的。解析内置JSON API采用了Android的数据。
The approach you may need to choose will be, have a service hosted on your server (could be written in any programming language) which retrieves/posts data from database and sends data in either JSON/XML format ( I did JSon format) to app. In your app use HTTPClient to get/post data to service hosted on your server. Parse the data using Android in built JSon API.
如何使用Web服务的Android参考以下链接:
How to consume web service in android refer following links :
<一个href="http://stackoverflow.com/questions/983761/android-java-simple-send-and-recieve-with-server-fast-setup-challenge">Android (Java)的简单发送和接收与服务器 - 快速设置挑战
这篇关于Android的 - 要传输的数据SQLITE数据库到Web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!