如何设置/发送地理位置参数纬度/长到Android-x86模拟器 [英] How do I set/send geolocation parameters lat/long to an Android-x86 emulator

查看:468
本文介绍了如何设置/发送地理位置参数纬度/长到Android-x86模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载从网站上一个Android异的Andr​​oid 4.0 x86的RC2重新配置键盘

I downloaded an Android iso from the website Android x86 4.0 RC2 reconfigure keyboard.

安装VirtualBox中选择一个Linux发行版,256 MB RAM,8 GB的硬盘驱动器。

Installed VirtualBox selecting a Linux distro ,256 MB RAM, 8 GB HDD.

我装的iso到CD终于在虚拟硬盘安装,模拟器运行平稳。

I loaded the iso into the CD to finally install it on the virtual HDD, the emulator runs smoothly.

我allowedmock位置对开发商设置。

I allowedmock locations on the developer settings.

我可以利用NAT连接到互联网低谷导航*的 * 的*我的主机上执行命令后

I can connect to internet trough the navigator using a NAT*** after executing the command on my host machine

VBoxManage modifyvm AndroidVM --natpf1 adb,tcp,*,5555,*,5555

* 如果我选择桥适配器,我不能设置以太网,加上netcfg eth0的DHCP产生超时

我可以从主机连接亚行

adb connect localhost

我检查了设备连接:

I checked that the device is connected:

 C:\Android\android-sdk\platform-tools>adb devices
  List of devices attached
  localhost:5555  device

但是,当我尝试设置/发送地理位置到模拟器...

But when I try to set/send geolocation to the emulator...


  • 通过Eclipse - >的模拟器控制 - >位置控制。它不会让我编辑纬度/经度和发送。

  • Via Eclipse-->The Emulator Controls -> Locations controls. It does not allow me to edit lat/long and send it.

如果我尝试使用telnet本地主机5555进行​​连接,所以我可以使用地理命令,出现黑屏,如果我preSS任何按钮会出现光标移动,但没有。

If I try to connect using telnet localhost 5555, so I could use the geo command, a black screen appears and if I press any button the cursor moves but nothing appears.

最后,我试图安装该应用程序的蓝牙GPS,但在谷歌播放似乎出于某种原因,网络链路的帐户未检测到,我不能继续下去,就算我pviously登记在$ P $谷歌Play网站在浏览器中。

Lastly, I tried to install the application Bluetooth GPS, but when Google Play appears to link an account for some reason network is not detected and I can not continue, even if I am previously registered on the google play website within the browser.

先谢谢了。

推荐答案

首先,确定目标模拟器实例控制台端口号。例如,推出了第一款模拟器实例控制台端口号是5554接下来,连接到目标模拟器实例的控制台上,指定其控制台端口号,如下所示:

First, determine the console port number for the target emulator instance. For example, the console port number for the first emulator instance launched is 5554. Next, connect to the console of the target emulator instance, specifying its console port number, as follows:

$ telnet localhost 5554

从Android控制台,您可以执行

From the android console you can execute

geo fix <longitude value> <latitude value>

这篇关于如何设置/发送地理位置参数纬度/长到Android-x86模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆