cordova/cordova-android — Issue #13: Getting unnecessary logs while using the compiled cordova.jar
Author: Coder-Nasir
Created: 2012-03-09 06:00:55+00:00
State: open

After compiling the cordova project from https://github.com/cordova/cordova-android
by the following commands
---->android update project -p . -t android-15
---->ant jar

Then i get a jar. I use this jar to develop my application,but i am facing a problem while using databases
If suppose i use database like this

function onDeviceReady() {
var db = window.openDatabase("something", "1.0", "PhoneGap Demo", 0);
db.transaction(populateDB, errorCB, successCB);
}
function populateDB(tx) {
tx.executeSql('DROP TABLE IF EXISTS DEMO');
tx.executeSql('DROP TABLE IF EXISTS DEMO1');
tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO1 (id1 unique, data1)');
tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
tx.executeSql('INSERT INTO DEMO1 (id1, data1) VALUES (1, "First row1")');
tx.executeSql('INSERT INTO DEMO1 (id1, data1) VALUES (2, "Second row1")');
}
function errorCB(err) {
alert("Error processing SQL: "+err);
}
function successCB() {
var db = window.openDatabase("something", "1.0", "PhoneGap Demo", 0);
db.transaction(queryDB, errorCB);
}
function queryDB(tx) {
tx.executeSql('SELECT * FROM DEMO', [], querySuccess, errorCB);
}
function querySuccess(tx, results) {
// the number of rows returned by the select statement
var len = results.rows.length;
for (var i=0; i