callback/callback-android — Issue #59: Error on loading url with query string or hash on Andriod 4.0.3
Author: xwk
Created: 2011-12-20 06:55:09+00:00
State: open

Folks,
I find that if ,1) the url passed to DroidGap.loadUrl() is contains a query string or hash at its end; and 2) the app is running on Android 4.0.3 (a Nexus S phone), then the loadUrl will fail with message like "can not load file:///xxxxx". There is also a error message like "Chromium: unknown error -6" in the log.
It can be simply repeated with the phonegap example code by changing super.loadUrl("file:///android_asset/www/index.html") to super.loadUrl("file:///android_asset/www/index.html?test=true").
Both of the two conditions should be met for this problem to occur. As I tested, all of PhoneGap 1.1,1.2 and 1.3 have this problem.
I have also tried to simply embed webview directly in my Activity and ask it to load a URL with query string and do not see any problem. So the issue should be related to the logic added by PhoneGap.