phonegap 0.9.3 onReceivedError: Error code=-6 Description=The connection to the server was unsuccessful. URL=file:///android_asset/www/index.html
1,534 views
Skip to first unread message
dinesh
unread,
Jan 22, 2011, 9:06:26 AM1/22/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phonegap, dinesh...@gmail.com
Hi
previously i am using phonegap 0.9.2 in my applicaion, if i use
phonegap 0.9.3 instead of phonegap 0.9.2 i got the error
onReceivedError: Error code=-6 Description=The connection to the
server was unsuccessful. URL=file:///android_asset/www/index.html
and the app closely forcely.
how to solve this problem
Riceball
unread,
Feb 14, 2011, 3:16:57 AM2/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phonegap
The problem may be the mobile's network is too slow to get some url.
Try add this line to your code(src/com/phonegap/xxx.java):
super.setIntegerProperty("loadUrlTimeoutValue", 60000);
but I do not think It's not a good idea to stop the app when the url
timeout.
Robert Fletcher
unread,
Feb 14, 2011, 8:32:47 AM2/14/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to phon...@googlegroups.com
u could also try to. make it your homepage doesnt require the inteenet to work. like if u connect to jquery via the internet instead wrap jquery with your app.