开发者

Send data from Android app to web service

开发者 https://www.devze.com 2023-02-18 12:40 出处:网络
I have an Android application with a SQLite database from which I want to send some data to a webservice to store it in a database there.

I have an Android application with a SQLite database from which I want to send some data to a webservice to store it in a database there.

How would I go about doing this? Is there a smart way of doing it?

I've thought about just extractin开发者_高级运维g the data from the SQLite database and create an XML file to hold and then send the XML file to the webservice, but is there a easier/better way of doing this?


JSON is generally seen as a more efficient data format for transferring to and from mobile devices. Check out this post about how to do it. You will, of course, need a web service that can accept and interpret JSON objects.

0

精彩评论

暂无评论...
验证码 换一张
取 消