在模拟器当前位置 [英] Current location on emulator
本文介绍了在模拟器当前位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以展示我们的Android模拟器当前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.
- 启动模拟器。
- 从终端运行
远程登录本地主机5554
,你现在在仿真器的外壳。 - 键入
帮助
,它会显示可用的命令,如伪造的电话,短信,电池等。 - 要了解更多关于命令类型
帮助<命令名称>
。 - 键入
帮助地球
,它将打印可用位置的命令。 - 尝试
地理修复1
。 - 尝试更多与其他纬度和经度值。
- Start emulator.
- From terminal run
telnet localhost 5554
, you are now in emulator shell. - Type
help
,it will show available commands , like faking a call, sms, battery etc. - To know more about a command type
help <command name>
. - Type
help geo
, it will print available location commands. - Try
geo fix 1 1
. - Try more with other latitude and longitude values.
这篇关于在模拟器当前位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文