E
E
epicfailguy932013-02-27 02:50:05
blackberry
epicfailguy93, 2013-02-27 02:50:05

QtQuick.LocalStorage 2.0 on BlackBerry PlayBook?

Need help! I am writing an application on Qt Quick 2.0 for BB PlayBook. Faced with the fact that for some reason the SQLite database (QtQuick.LocalStorage 2.0) was initialized incorrectly on the device (not the same as on the desktop, which is strange in itself). But the main thing is that I cannot check what is in it, since I do not have access to it. Questions:
1) Where is Local Storage stored on the device?
2) If it is playbook:/accounts/1000/appdata/%appname%, then how to access it? The user doesn't seem to have permission to even browse the directory.
3) Is it possible to clean up the database programmatically (remove all tables or even the .sqlite file from the partition)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
epicfailguy93, 2013-03-01
@epicfailguy93

Well, in general, I messed up the initialization there myself, but the questions remain relevant. I only found out that you can’t delete all tables in SQLite at once, you can do it one at a time:

var db = LocalStorage.openDatabaseSync("TestDatabase", "1.0", "Test Database App", 1000000);
db.transaction(
    function(tx) {
        tx.executeSql('DROP TABLE TestTable);');
    }
);

N
Nikita Krupenko, 2013-04-07
@BlackRaven86

The QQmlEngine object (or QDeclarativeEngine in QtQuick 1) has a property offlineStoragePath , it just contains the path where information from LocalStorage is stored.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question