Creating SQLite Table from Android HTML Assets
<p>I tried to use a HTML in android to create a table in sqlite but it is not working</p>

<p>Sample HTML is here</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Contact Example&lt;/title&gt;

&lt;script type="text/javascript" charset="utf-8" src="phonegap-1.0.0.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" charset="utf-8"&gt;

// Wait for PhoneGap to load
//
//document.addEventListener("deviceready", onDeviceReady, false);

// PhoneGap is ready
//
function onDeviceReady() {
    var db = openDatabase("Database", "1.0", "PhoneGap Demo", 200000);
    db.transaction(populateDB, errorCB, successCB);
}

// Populate the database 
//
function populateDB(tx) {
     tx.executeSql('DROP TABLE IF EXISTS DEMO');
     tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
     tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
     tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
}

// Transaction error callback
//
function errorCB(tx, err) {
    alert("Error processing SQL: "+err);
}

// Transaction success callback
//
function successCB() {
    alert("success!");
}

&lt;/script&gt;
&lt;/head&gt;
&lt;body onload="onDeviceReady()"&gt;
&lt;h1&gt;Example&lt;/h1&gt;
&lt;p&gt;Database&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Android 2.2
I am not able to see any database create in android. Please some suggestion</p>
