简体   繁体   English

地理修复未在Android仿真器中设置浏览器位置

[英]Geo Fix Not Setting Browser Location in Android Emulator

Using the the Geo Fix command to set the virtual device's location in the Android Emulator works properly for the Maps application. 使用Geo Fix命令在Android仿真器中设置虚拟设备的位置对于Maps应用程序而言是正确的。 However, when I attempt to view my current location in Google Maps in the virtual device's browser, I receive the "Your location could not be determined" error. 但是,当我尝试在虚拟设备的浏览器中的Google地图中查看我的当前位置时,收到“无法确定您的位置”错误。 Does the Geo Fix command not support the W3C geolocation standard or am I missing something? Geo Fix命令是否不支持W3C地理位置标准,或者我缺少什么?

(1) First, open the emulator, then run cmd, type telnet localhost 5554 this will appear Android Console: type 'help' for a list of commands OK. (1)首先,打开模拟器,然后运行cmd,键入telnet localhost 5554,这将出现在Android控制台中:键入“ help”以获取命令列表,然后单击“确定”。

(2) geo fix Latitude Longitude (2)地理定位经度

(3) Location loc = LocationManager.getLastKnownLocation("gps"); (3) Location loc = LocationManager.getLastKnownLocation("gps");

if it doesn't help,try this: 如果没有帮助,请尝试以下操作:

open eclipse, windows -> open perspective -> DDMS -> Emulator control -> Manual to manually set the latitude and longitude, and press the send button. 打开Eclipse,打开窗口->打开透视图-> DDMS->仿真器控件->手动以手动设置纬度和经度,然后按发送按钮。

good luck~ 祝你好运〜

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android 模拟器位置 mocking 带地理修复 - Android Emulator Location mocking with geo fix 无头 Android 模拟器:GPS 即使设置 Geo Fix,位置也不起作用 - Headless Android Emulator: GPS Location does not work even with setting Geo Fix 位置未在Android模拟器中的新地理位置修复程序上更新 - Location not being updated on new geo fix in android emulator android模拟器geo fix无法设置gps位置 - android emulator geo fix is unable to set gps location Android功能测试; 将地理位置发送到模拟器 - Android functional test; send geo location to emulator 模拟器上的GPS无法获得地理定位 - Android - GPS on emulator doesn't get the geo fix - Android wifi上的Android Web浏览器地理位置问题-尚待解决 - Android web browser geo location problems on wifi - it's way off 有没有办法使用Android模拟器和“地理定位”来传递当前速度数据以及纬度和经度? - Is there a way to pass current speed data along with latitude and longitude using the Android emulator and 'geo fix'? Android工具(DDMS和仿真器“ geo fix”)为什么在纬度之前需要经度,是否有技术上的原因? - Is there a technical reason why Android tools (DDMS, and emulator “geo fix”) expect longitude before latitude? 如何修复 Android Studio 模拟器中的错误点击位置? - How to fix wrong click location in Android Studio emulator?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM