The config.xml file should contain an entry like <content src="index.html" />
The following is an example config.xml file. An entry in the config.xml file can be overwritten with your own html file name, which will be used as the launch html file.
EDIT1:
Unfortunately. I completely forget to see the question you edited.
You are missing an important entry in the index.html file.
You need to include the following in your head tag.
<head> <script type="text/javascript" src="cordova.js"></script> </head>
** Example config.xml below **
<?xml version='1.0' encoding='utf-8'?> <widget id="com.company.appname" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <preference name="loglevel" value="DEBUG" /> <preference name="AndroidLaunchMode" value="singleTop" /> <feature name="App"> <param name="android-package" value="org.apache.cordova.App" /> </feature> <feature name="Device"> <param name="android-package" value="org.apache.cordova.device.Device" /> </feature> <name>appname</name> <description> A sample Apache Cordova application that responds to the deviceready event. </description> <author email=" dev@cordova.apache.org " href="http://cordova.io"> Apache Cordova Team </author> <content src="index.html" /> <access origin="*" /> </widget>
frank source share