Geo Location Provider Emulation
The console provides commands to let you set the geo position used by an emulator emulated device. You can use the
geo command to send a simple GPS fix to the emulator, without needing to use NMEA 1083 formatting. The usage for the command is:
geo command supports the subcommands listed in the table below.
fix <longitude> <latitude> [<altitude>]
|Send a simple GPS fix to the emulator instance.
||Specify longitude and latitude in decimal degrees. Specify altitude in meters.
|Send an NMEA 0183 sentence to the emulated device, as if it were sent from an emulated GPS modem.
<sentence> must begin with '$GP'. Only '$GPGGA' and '$GPRCM' sentences are currently supported.
You can issue the
geo command to fix the GPS location as soon as an emulator instance is running. The emulator creates a mock location provider that sends it to GPS-aware applications as soon as they start and register location listeners. Any application can query the location manager to obtain the current GPS fix for the emulated device by calling:
For more information about the Location Manager, see LocationManager and its methods.