I am making an app in which i want to send gps coordinates like latitude and longitude to server in xml .. Can anybody help me how to do this .. Any help will be appreciated ... Thanks..
3 Answers
Google is really your friend on this one. Stackoverflow is more ment for programming issues, not tutorials on how to do something, noone will write the code for you.
What have you tried earlier?
Similar question How to send GPS data from android to a website?
Send to server: Android (Java) Simple Send and receive with Server - Fast Setup Challenge
How to send a data to a web server from Android
Soap:
https://stackoverflow.com/questions/3112426/best-soap-tutorials

- 1
- 1

- 8,085
- 3
- 30
- 38
One way I can think of is to initiate a POST request via HTTP using a URL like:
http://server.example.com/postgps
(Assume server.example.com
is the server to send the data to.)
The request body would then contain XML data.
The question, however, is too vague for us to help further.

- 32,158
- 14
- 82
- 96
What does your server accept as an interface? GML is a standard XML grammar for geographic information. You can simplify it by using GML Simple Features Profile. If you want something even easier, you might try GeoURI.

- 61
- 10