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/
If you using Eclipse you can go to "window->open pespective->ddms". Then you go to Emulator Control tab. There is a "Location Control" and you can send a location.