-1

I have an android application which holds the data of the latitude and the longitude of the current location. I want to send those values to a desktop application but i am not familiar with sending data to one machine to another. How can i do that?

PS:I must use java and for connection i need to use the internet to send the data.

2 Answers2

1

Can you be more specific? Depending what you want to do. If you want to send data over the internet, i think the best approach will be a web service.

You also have JSON: http://www.vogella.com/articles/AndroidJSON/article.html

SOAP: How to call a SOAP web service on Android

Cheers.

Community
  • 1
  • 1
Ratz
  • 99
  • 1
  • 8
1

Assuming you want to send current location data over internet:

You can use a web service which serves to both your android client and desktop application. Web service can store location data sent by android client and desktop application can periodically call web service method to get the latest location data

I suggest you use gson library (There are tutorials at the bottom of the page)

Saro Taşciyan
  • 5,184
  • 5
  • 29
  • 50