I\'m using phonegap to develop an application on android, when I test it on my phone I get this error Application Error Is a directory (file:///#android_asset/www/inde
I found the answer here: http://dev.wavemaker.com/wiki/bin/wmdoc_6.5/PhoneGap?xpage=print#HTheconnectiontotheserverwasunsucessful28file3A2F2F2Fandroidasset2Fwww2Findexhtml29
6.1 The connection to the server was unsucessful (file:///android_asset/www/index.html)
WHERE: When launching the application on an Android device.
Anything you place within your index.html file that requests a remote resource will cause the above error to be thrown for android devices, and your application will then die. The Weinre debugger is a common cause of this error.
Solution: Move the loading of remote resources out of index.html and into your application where it will fail quietly.