3

I've found two sources on retrieving the GPS location of an andriod phone, one from the Google Website:

http://developer.android.com/training/location/retrieve-current.html#top

and one from here:

What is the simplest and most robust way to get the user's current location on Android?

They both describe different steps. I'm not sure which one to follow, unfortunately the Android Emulator doesn't seem to come with Google Play installed, so I want to go with the second.

Community
  • 1
  • 1
Mike Flynn
  • 1,025
  • 2
  • 12
  • 29

3 Answers3

1

You can use LocationManager to getLastKnownLocation, without Play services.

Community
  • 1
  • 1
banderkat
  • 481
  • 2
  • 6
0

No they aren't. Google services provide support for A-GPS assisted with Wifi which can get a location fix faster than just GPS or GPS+Mobile network.

sgupta
  • 1,214
  • 2
  • 15
  • 29
0

Well Emulator device can get location co-ordinates but manually by ddms device manager, And yes there are two way get location co-ordinates. One by android native and other by google play servives library. second one has its own issues. its works with proper version of google play services installed on the device. I prefer better use first one android by using simple location manager class.

Sush
  • 3,864
  • 2
  • 17
  • 35