Android emulator set gps geolocation

强颜欢笑 提交于 2019-12-13 21:47:11

问题


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



来源:https://stackoverflow.com/questions/42405946/android-emulator-set-gps-geolocation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!