Android - Want to transfer data from SQLITE db to Web Server

后端 未结 1 2036
误落风尘
误落风尘 2020-12-15 01:48

I have developed an offline data entry app in android where the user enters all the details which will be saved in sqlite db.

At the end of the day I want to transf

相关标签:
1条回答
  • 2020-12-15 02:32

    You can use web services to send data to server.

    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.

    How to consume web service in android refer following links :

    Android (Java) Simple Send and receive with Server - Fast Setup Challenge

    Send data from android to webserver

    Send data from android to server via JSON

    Android Utility to send sqlite db to server

    0 讨论(0)
提交回复
热议问题