How to set location on emulator

emulatorYou have two options if you would like to set the location on the emulator. For both options, you start with starting the emulator first.

Option 1: using DDMS

  • go to your android/tools directory, and launch the DDMS tool
  • select the Emulator Control Tab
  • fill the Location Controls fields with the longitude and latitude values
  • press the Send button

Option 2: using telnet

  • open a command shell
  • conect to the emulator with the command: telnet localhost <port>
  • to enter a fixed location execute the command:
    geo fix <longitude> <latitude> [<altitude>]

For more information visit Location and Maps on the Android Developers page.