问题
I have a 9800 simulator. I mounted a directory as SDcard...
Now if i use
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")');
}
function errorCB(err) {
alert("Error processing SQL: "+err.code);
}
function successCB() {
alert("success!");
}
var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
db.transaction(populateDB, errorCB, successCB);
Then where will my database gets stored?
回答1:
I needed to mount the SD card before installing the application and then i should execute my application...
来源:https://stackoverflow.com/questions/10278689/what-is-the-database-location-in-blackberry-while-using-phonegap