I am planning on converting some longitude and latitude values to XML and then sending the file to a web server to display on a Google Map Interface.
Is it possible to send an XML file to a web server through my own application in Android?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Android has a public class called
HttpPostthat would work fine.Basically you specify the url that the server that you are sending the HTTP request to and the content of the XML goes into the POST area. The web server will receive the request and, assuming a php script is at the URL, the script can grab the contents via its own
$_POSTglobal variable and do with the XML what needs to be done.