'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)?



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 CeKup