Figure 5. Location Manager invocation command
Applications having a Location Manager are able to do the
following:
ƒ Query for the list of all Location Providers of last known
location.
ƒ Register/unregister for periodic updates of the user's current
location from a Location Provider.
ƒ Register/unregister for a given Intent (message) to be fired if
the device comes within a given proximity of a required latitude
/longitude
Location changes can be tested in the emulator using Keyhole
Markup Language (KML) files that provides geographical
location details. KML file is created using Google earth.The
.kml file output from the Google earth is converted into android
compatible format using ge2adt tool. Fig 6 shows the Droid
Debug Monitor Server (DDMS) perspective in eclipse displaying
the emulator control view.
Four points on the path of location of interest were chosen and
loaded in the KML tab of Android emulator control.