phonegap and android 2.3 , will not work

Hey, nice to understand why my app crashes hard when in android 2.3
Phonegap is cool, but no one states the obvious tidbit:, hey guys, you can't use 2.3 because there is a bug in android when it tries to use javascript with a WebView....

android gps in emulator

This was a show stopper for me.
The android emulator will not return GPS data until you do a "geo fix"
While there is lots of info on "geo fix", I would expect the emulator to a least default to google headquarters or something.  Damn you, making me do more work and telneting to my android console.

phonegap deviceReady not called in android

I found several other folks via a google search that experience the same problem.  To summarize, the deviceReady function IS being called, it just is being called super-fast, before your handler is setup to respond to the event.

Here is how I fixed it for the spotmouth android app. I test for the presence of the navigator.device object.  If it's not there, I register my callback. If there is already present, than the deviceReady event has already been called, and I just call it myself.


<body onload="onBodyLoad()">


zero to full featured android app in just a few hours

Wow.  Phonegap is truly awesome.

For the past month+ (in weekends/evenings), I have been writing a GWT application that I have deployed as an iPhone application to PhoneGap.

Today, I started the process to "port" my application to android.  Just a few hours later, I am up and running my application in the emulator.  If I could have just known not to try generate the android application from the windows command line vs. cygwin, I could've been here in just an hour.

Application is looking good!  here is a screen shot.

Syndicate content