Quantcast
Channel: Makai's Blog
Viewing all articles
Browse latest Browse all 40

Upgrading from PhoneGap 1.1 to PhoneGap 1.2 for Android Applications

$
0
0

I upgraded from PhoneGap (Apache Callback) 1.1 to version 1.2 today. Unfortunately, I encountered the following cryptic stacktrace:

ERROR/AndroidRuntime(9469): FATAL EXCEPTION: Thread-9

java.lang.RuntimeException: Can’t create handler inside thread that has not called Looper.prepare()

at android.os.Handler.<init>(Handler.java:121)

at android.webkit.WebView$PrivateHandler.<init>(WebView.java:7341)

at android.webkit.WebView.<init>(WebView.java:416)

at android.webkit.WebView.<init>(WebView.java:967)

at android.webkit.WebView.<init>(WebView.java:957)

at android.webkit.WebView.<init>(WebView.java:948)

at com.phonegap.DroidGap.init(DroidGap.java:268)

at com.phonegap.DroidGap.loadUrlIntoView(DroidGap.java:381)

at com.phonegap.DroidGap.access$300(DroidGap.java:159)

at com.phonegap.DroidGap$3.run(DroidGap.java:537)

at java.lang.Thread.run(Thread.java:1102)

The same stacktrace is found under issue #23 for PhoneGap.

Unfortunately PhoneGap 1.2 isn’t patched yet to accomodate the issue. So there’s 2 options if you hit this snag:

  1. Disable the splash screen on Android
  2. Download the latest nightly PhoneGap build on Github until PhoneGap 1.3 is released

Hopefully this issue will be resolved soon with a new PhoneGap release (maybe a 1.2.1 release)?


Viewing all articles
Browse latest Browse all 40

Trending Articles