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?
Select "Emulator Control" Tab. At bottom you will see Location Controls Panel. Select "Manual" Tab. Enter Longitude and Latitude in Textboxs then Click Send Button.
Select Location > Then set the Latitude and Longitude values. Then press Send to set the Latitude and Longitude values to the emulator device.
Tools --> Android --> Android Device Monitor
If your emulator is running and not offline, you will get window like in eclipse to set Emulator control.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With