Android模拟器 - PhoneGap GPS位置? [英] Android Emulator - PhoneGap GPS Location?

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

问题描述

我在玩电话差距和Android模拟器。有没有在模拟器内测试GPS?显然,模拟器没有GPS,但是有调试模式或者什么?



每次我测试它,GPS'onDeviceReady'只是直接到



谢谢。

解决方案

在Android模拟器中,您可以尝试使用 ddms



.android.com / tools / debugging / ddms.html




如要在模拟器外调试phonegap应用程式, PhoneGap



http:/ emulation / Ripple 允许您在桌面浏览器中测试。 /emulate.phonegap.com/ PhoneGap Emulation powered by Ripple



点击设置齿轮,然后选中覆盖地理位置。






Weinre (WEb INspector REmote)可让您远程测试网络应用程序。



debug.phonegap.com /



people.apache.org/~pmuellr/weinre/docs/latest /


I'm playing around with Phone Gap and an Android Emulator. Is there away to test the GPS within the emulator? Obviously the emulator doesn't have a GPS, but is there a debug mode or something?

Every time I test it, the GPS 'onDeviceReady' just goes straight to the 'onError' function.

A way around this?

Thanks.

解决方案

Within Android emulator, you could try using ddms.

developer.android.com/tools/debugging/ddms.html


For debugging phonegap application outside the emulator, PhoneGap Emulation / Ripple allow you to test in desktop browser.

http://emulate.phonegap.com/ "PhoneGap Emulation powered by Ripple"

Click the setting gears and check "Override Geolocation".


Weinre (WEb INspector REmote) enables you to test the web application remotely.

debug.phonegap.com/

people.apache.org/~pmuellr/weinre/docs/latest/

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

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