DDMS无法发送位置仿真器 [英] DDMS not able to send location to emulator

查看:203
本文介绍了DDMS无法发送位置仿真器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

DDMS无法发送位置到仿真器。我曾尝试发送刚刚从DDMS的位置,但仍是模拟器无法接收位置。该应用程序正常工作的设备,但它不能捕捉到的位置数据在模拟器。

DDMS is not able to send location to the emulator. I have tried sending just the location from DDMS but still the emulator is not able to receive location. The application works properly in the device but its not able to capture location data in the emulator.

我正在测试Android 2.2的模拟器。任何人都可以让我知道什么都可以的问题?

I am testing on Android 2.2 emulator. Can anyone let me know what can be the issue?

推荐答案

我只是用通过telnet android的控制台,它始终有效。

I just use the android console via telnet, it always works.

只需打开一个命令行:

telnet localhost 5554

5554是你的模拟器的端口号,它通常是,但可能发生变化,也可以是在模拟器作为PORT的窗口FRAM:AVD_NAME

5554 is the port number of your emulator, it is usually that but might change, it can be on the window fram of the emulator as PORT:AVD_NAME.

您应该会看到有一个Android控制台消息。

You should be greeted with an Android console message.

要发送的位置到您的设备只需键入。

To send positions to your device just type.

地理修复[]

两个有效的语句是

geo fix -77.036519 38.896143
geo fix -77.036519 38.896143 100

希望这会有所帮助,它不是DDMS,但它的作品始终。你也可以给它NMEA语句,但我不认为你需要的。

Hope this helps, its not DDMS, but it works always. You can also feed it nmea sentences but I dont think you need that.

这篇关于DDMS无法发送位置仿真器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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