Android emulator set gps geolocation

2019-09-19 05:26发布

问题:

Is there any other way to set gps coordinates for the emulator? It does not work for the following methods: 1). geo fix longitude, latitude [altitude] If it does not work in terminal.

2)

3)

回答1:

In the emulator tool bar there should be ellipses you can click. Once you click them the Longitude and Latitude in that window are editable and will change the emulators perceived location.

annotated image of where to find this button

image showing where to edit long and lat



回答2:

An additional step may be needed on some phones which for Android developers, is most likely already done. Enable developer mode (tap 7+ times on Build Number) and turn on mock locations