Android的 - 要传输的数据SQLITE数据库到Web服务器数据库、服务器、数据、Android

2023-09-13 00:36:27 作者:爵士少年.﹌‖

我已经开发了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服务的Andr​​oid参考以下链接:

How to consume web service in android refer following links :

Android (Jav​​a)的简单发送和接收与服务器 - 快速设置挑战

从Android的数据发送到web服务器

从机器人通过JSON数据发送到服务器

Android的实用派的SQLite数据库断绝

 
精彩推荐
图片推荐