DDMS 无法将位置发送到模拟器

发布于 2024-09-17 23:19:25 字数 131 浏览 3 评论 0原文

DDMS 无法将位置发送到模拟器。我已尝试仅从 DDMS 发送位置,但模拟器仍然无法接收位置。该应用程序在设备中正常运行,但无法在模拟器中捕获位置数据。

我正在 Android 2.2 模拟器上进行测试。谁能让我知道可能是什么问题?

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.

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

︶葆Ⅱㄣ 2024-09-24 23:19:26

确保您的 AVD 将 GPS 支持硬件设置为 true

创建新 AVD >硬件>新的> GPS 支持

值应为“yes”

此外,请确保您的应用程序以某种方式请求位置更新,否则模拟器将忽略来自 DDMS 或控制台的任何传入位置。

Make sure your AVD has GPS support hardware set to true

Create New AVD > Hardware > New > GPS support

Value should be "yes"

Also, ensure your app is requesting location updates in some way, otherwise the emulator will just ignore any incoming locations from DDMS or the console.

请帮我爱他 2024-09-24 23:19:26

我只是通过 telnet 使用 android 控制台,它总是有效。

只需打开一个命令行,然后:

telnet localhost 5554

5554 是模拟器的端口号,通常是这样,但可能会改变,它可以作为 PORT:AVD_NAME 在模拟器的窗口框架上。

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

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

geo fix []

两个有效的陈述是

geo fix -77.036519 38.896143
geo fix -77.036519 38.896143 100

希望这有帮助,它不是 DDMS,但它始终有效。你也可以给它喂一些句子,但我认为你不需要那个。

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

Just open a command line and:

telnet localhost 5554

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.

You should be greeted with an Android console message.

To send positions to your device just type.

geo fix []

Two valid statements would be

geo fix -77.036519 38.896143
geo fix -77.036519 38.896143 100

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

彼岸花ソ最美的依靠 2024-09-24 23:19:26

我不知道您的设置是什么样的,但我在使用 Windows XP 且区域设置设置为瑞典语的情况下通过 DDMS 发送位置时遇到问题。将区域设置更改为英语(美国)解决了我的问题。我想这与数字的格式有关。使用瑞典语设置时,数字格式为 123 456 789,00,使用英语(美国)时格式为 123,456,789.00。希望有帮助

I don't know what your setup looks like, but I've had problems sending locations via DDMS using Windows XP and regional settings set to Swedish. Changing the regional settings to English(USA) solves the problem for me. I guess it has something to do with how numbers are formatted. With swedish settings numbers are formatted as 123 456 789,00 and with English(USA) as 123,456,789.00. Hope it helps

遗心遗梦遗幸福 2024-09-24 23:19:26

我遇到了这个问题,我通过禁用防火墙解决了它,
希望它对你有用。

I had this problem and I resolve it by disabling the firewall,
hope it works for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文