0

First of all I would like to mention that this would be done with the consent of all users!

That being said, what I am trying to create is an application where the users would see their location and the location of all the other connected users (latitude and longitude).

I am pretty sure the best way to do that would be to send data to a server and then have each device retrieve that data but I would like to know if there exist other ways of doing this. Or perhaps someone could point me in the right direction on how to create such a system with a server retrieving and sending data to android devices ?

  • GPS coordinates will do for you. You can get the coordinates and save in server then all the coordinates of a particular device can be retrieved by any connected device. – Iqbal S Apr 14 '15 at 19:30
  • And I presume the java net package would do the job for that ? – Félix Poitras Apr 14 '15 at 19:35
  • We have Location and LocationManager in Android to do the job for you. Details: http://stackoverflow.com/questions/1513485/how-do-i-get-the-current-gps-location-programmatically-in-android – Iqbal S Apr 14 '15 at 19:40
  • Adding it as answer, so that it helps other friends. – Iqbal S Apr 15 '15 at 04:11

1 Answers1

1

GPS coordinates will do for you. You can get the coordinates and save in server then all the coordinates of a particular device can be retrieved by any connected device.

We have Location and LocationManager in android which shall do the job for you. Read more about these in the Android Developers

Iqbal S
  • 1,156
  • 10
  • 16