Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phonegap doesn't work

i have downloaded the phonegap example from its website.but it doesn't run.i can't find the reason.help me to get the solution please.when i run it shows

"The Web page at file:///andriod_asset/www/index.html could not be loaded as: The requested file was not found.www/index.html"

like image 669
adithi Avatar asked Aug 02 '10 03:08

adithi


3 Answers

I tried with three "///" instead of four, it worked for me. Give a try super.loadUrl("file:///android_asset/www/index.html");

like image 200
Raghava Avatar answered Oct 23 '22 13:10

Raghava


You've spelt android wrong here:

        HERE!!!

file://>>>>>>andriod<<<<<<_asset/www/index.html could not be loaded as: The requested file was not found.www/index.html"

Try out:

file:///android_asset/www/index.html could not be loaded as: The requested file was not found.www/index.html"

Best of luck!

like image 3
Otroberts Avatar answered Oct 23 '22 14:10

Otroberts


Just a quick comment for other's getting to this same problem, who doesn't have the spelling error. My new app using PhoneGap 0.9.4 was giving this same error box. The solution was to rename phonegap.0.9.4.js and phonegap.0.9.4.jar to just phonegap.jar and phonegap.js. After that it loads up.

like image 2
Kristian Kristensen Avatar answered Oct 23 '22 14:10

Kristian Kristensen