Android Client Server communication

Siddiqui picture Siddiqui · Mar 1, 2011 · Viewed 27.4k times · Source

I have an application in Android which get latitude and longitude from GPS. I want to send these lat and long to server at particular port and want to receive the response of server into my Android application.

Kindly give the direction so that I can make it possible.

Answer

Joel C picture Joel C · Mar 1, 2011

There are many ways to perform this data transfer using the Android platform.

My preference is to use JSON to communicate between the App and the server. For an example of how to implement this in your app read through this article: http://www.josecgomez.com/2010/04/30/android-accessing-restfull-web-services-using-json/