简体   繁体   中英

Android emulator set gps geolocation

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) GPS设定

3) DDMS安装

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM