0

I've got many Android devices and I want to create an application that will be able to send the GPS coordinates and some id of the device to a server created on a PC. what is the fastest and easiest way to do do that ? I tried to find some telnet or java spring rest template but couldn't find a decent tutorial.

please help

basildiy
  • 1
  • 1
  • 1
  • What does 'telent or java spring rest template' have to do with an android app that sends coordinates to another server? – I82Much Jan 15 '12 at 18:54

1 Answers1

0

There are two steps

1) Getting the GPS coordinates

There are a multitude of examples on how to do this; look into LocationListener and read the Obtaining User Location section of the docs.

2) Sending this data to a server

You will probably use an HTTP Post to accomplish this. See e.g. this Android HTTP Communication post and HttpClient class.

As far as getting a unique ID, you can use the suggestion from another post and use Settings.Secure.ANDROID_ID http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID

Community
  • 1
  • 1
I82Much
  • 26,901
  • 13
  • 88
  • 119