在模拟器当前位置 [英] Current location on emulator

查看:110
本文介绍了在模拟器当前位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以展示我们的Andr​​oid模拟器当前posotion?
如果是的话怎么样?

Is it possible to show our current posotion on Android emulator? If yes how?

感谢你。

推荐答案

您可以通过它的外壳仿真器实例进行交互。

You can interact with an emulator instance through its shell.


  1. 启动模拟器。

  2. 从终端运行远程登录本地主机5554 ,你现在在仿真器的外壳。

  3. 键入帮助,它会显示可用的命令,如伪造的电话,短信,电池等。

  4. 要了解更多关于命令类型帮助<命令名称>

  5. 键入帮助地球,它将打印可用位置的命令。

  6. 尝试地理修复1

  7. 尝试更多与其他纬度和经度值。

  1. Start emulator.
  2. From terminal run telnet localhost 5554, you are now in emulator shell.
  3. Type help,it will show available commands , like faking a call, sms, battery etc.
  4. To know more about a command type help <command name>.
  5. Type help geo, it will print available location commands.
  6. Try geo fix 1 1 .
  7. Try more with other latitude and longitude values.

这篇关于在模拟器当前位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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