Jeff G
Jeff G

Reputation: 1840

Android Location/GPS questions

A couple of questions regarding Location which I have not found answers to:

  1. Location.getLatitude()/getLongitude() return a double. What units is this double expressed in? Radians? Decimal degrees? The documentation doesn't give any indication whatsoever!

  2. What should I enter using DDMS in my AVD's file system to represent a sample location (say for example 51°N, 1° 30'W) to be found by LocationManager.getLastKnownLocation(GPS_PROVIDER) and where should I put it (meaning what folder)?

Upvotes: 0

Views: 518

Answers (1)

CeKup
CeKup

Reputation: 989

  1. Location.getLatitude() return values in degrees for example: 51.234
  2. See this http://www.helloandroid.com/tutorials/how-set-location-emulator

Upvotes: 2

Related Questions