What is the database location in Blackberry while using phonegap

可紊 提交于 2019-12-12 04:59:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!