Nic*_*ong 7 eclipse gps android adb android-emulator
我的应用适用于Google Apis 17.我想在启动模拟器后设置gps位置.
我尝试按照如何模拟-ps-location-in-the-android-emulator.
1.获取模拟器的序列号.
>adb devices
emulator-5554
Run Code Online (Sandbox Code Playgroud)
第二轮
adb -s emulator-5554 emu geo fix 121.4961236714487 31.24010934431376
Run Code Online (Sandbox Code Playgroud)
没有警告和错误.我在windows7上编程.
它不起作用.但是当我在eclipse(ADT22.6)中手动发送gps信息时,它可以工作.我的应用可以正确找到位置.eclipse做了什么?如何使adb命令工作?谢谢
小智 1
您尝试过通过 telnet 发送吗?首先你必须连接到模拟器:
telnet localhost 5554
Run Code Online (Sandbox Code Playgroud)
然后您可以使用 geo 命令发送纬度和经度:
geo fix 121.4961236714487 31.24010934431376
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
5145 次 |
最近记录: |