Take the 2-minute tour ×

When trying to navigate from index.html page to purchase.html, this "A Network error occurred" would appear if I add a parameter to the link

<a href="purchase.html?id=2">. 

Removing the "?id=2" then the link works.

This is the detailed error msg: 04-08 21:09:23.850: D/Cordova(967): DroidGap: GapViewClient.onReceivedError: Error code=-1 Description=A network error occurred. URL=file:///android_asset/www/purchase.html?id=2

share|improve this question

1 Answer 1

up vote 8 down vote accepted

It seems to be a major issue of Android. http://code.google.com/p/android/issues/detail?id=17535

share|improve this answer
Yes, please star the issue. In the mean time use localStorage to pass parameters between pages. –  Simon MacDonald Apr 9 '12 at 15:32
That is actually a more elegant solution! –  Yang Apr 9 '12 at 21:48
@SimonMacDonald : you have saved ma day :)..Thanks!!! –  user1042031 Aug 21 '12 at 20:44

Your Answer


