20

In eclipse you can set a GPS location for the emulator using:

Select Window > Show View > Other > Emulator Control.

In the Emulator Control panel, enter GPS coordinates under Location Controls as individual lat/long coordinates, with a GPX file for route playback, or a KML file for multiple place marks. (Be sure that you have a device selected in the Devices panel—available from Window > Show View > Other > Devices.)

Is this possible in android studio?

Ralf
  • 14,655
  • 9
  • 48
  • 58
Reafidy
  • 8,240
  • 5
  • 51
  • 83

3 Answers3

25
Tools --> Android --> Android Device Monitor

If your emulator is running and not offline, you will get window like in eclipse to set Emulator control.

Umesh
  • 1,609
  • 1
  • 17
  • 28
16

From the docs

If you want to debug your app with the Android Debug Monitor, you can launch it by clicking Monitor in the toolbar.

nedaRM
  • 1,837
  • 1
  • 14
  • 28
  • Thanks, every time I clicked on the monitor I had [this](http://stackoverflow.com/questions/17424533/android-ddms-monitor-does-not-start-if-user-profile-contains-a-space-in-it) problem. Managed to fix it by running as admin. Now I can see the emulator control. – Reafidy Sep 24 '13 at 03:29
  • I dont see any way to set anything on the DDMS screen (other than screen capture, and system information on the left). Where are they? – Stuart Siegler Jul 08 '14 at 13:51
  • 1
    This solution doesn't seem to work in the latest Android Studio 1.0.2. Am I missing something? – Joshua Wunder Feb 16 '15 at 14:00
8

On the Right Side of Your Android Emulator Where (Power Button ,Speaker , Camera etc Sign are given Find Three Dot Sign(...) at the last of that column. click on that then Click on location and Set the Latitude and longitude

RAHINUR RAHMAN
  • 141
  • 1
  • 5