Set GPS Location in Emulator using Android Studio
Solution 1
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.
Solution 2
Tools --> Android --> Android Device Monitor
If your emulator is running and not offline, you will get window like in eclipse to set Emulator control.
Solution 3
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
Related videos on Youtube
Reafidy
Commercial Helicopter Pilot/Aviation Maintenance Controller. Part time programmer. Administrator @ www.ozgrid.com/forum VBA, VB, C#, .NET, ASP.NET, SQL, Android, Java
Updated on July 09, 2022Comments
-
Reafidy almost 2 years
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?
-
Reafidy over 10 yearsThanks, every time I clicked on the monitor I had this problem. Managed to fix it by running as admin. Now I can see the emulator control.
-
Stuart Siegler almost 10 yearsI dont see any way to set anything on the DDMS screen (other than screen capture, and system information on the left). Where are they?
-
Joshua Wunder about 9 yearsThis solution doesn't seem to work in the latest Android Studio 1.0.2. Am I missing something?
-
Laurens Swart about 3 yearsI don't have an Android submenu in the Tools menu. Using Studio 4.3.1.