Surya
Surya

Reputation: 439

Phonegap application throws error running Android 4.0, but works fine on Android 2.3 and below

I have a problem with PhoneGap mobile app running on Android version 4.0.3. I am currently using PhoneGap version 1.5.0. And it works perfectly on Android 2.3 and all the lower versions of Android. However, when I try to run it on Android 4.0 - it throws this dialog error...

Application error - A network error occurred. (file:///android_asset/www/messagedetails.html?Id=29)

Upvotes: 0

Views: 1226

Answers (2)

Akilan
Akilan

Reputation: 1717

You just try with phonegap 1.9.0 version. Because that phonegap 1.5.0 version build may not supported for android 2.3.3+ versions.

Upvotes: 0

rekire
rekire

Reputation: 47965

Possible that phonegap does network operations on the UI thread. Every network operation on the UI thread causes an exception in Android 4.0 this could be your problem.

Upvotes: 1

Related Questions