[英]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.