I am creating a android application using Adobe Flash CC, the database connection is working perfectly when I run it in desktop. I can locate the .db file and use SQLite browser to view the tables in my database. Now my problem is when I publish it and install it in my android phone(not rooted) and use adb shell from android sdk to locate the .db file, I can't seem to locate the default path of the database in data/data/packagename/dbname. Here's my code in opening the DB.
function openDatabase():void
{
var dbFile:File = File.applicationStorageDirectory.resolvePath("TrialAndError.db");
connection = new SQLConnection();
connection.addEventListener(SQLEvent.OPEN, onOpen);
connection.openAsync(dbFile, SQLMode.CREATE);
}
In adb shell I am trying to pull the .db file
adb pull data/data/air.flash.android.trialanderror/databases/TrialAndError.db D:
but I get the result
remote object 'data/data/air.flash.android.trialanderror/databases/TrialAndError.db' does not exist
I tried different method like run-as packagename but it didn't work as well. Am I in the right path? Any help.
Aucun commentaire:
Enregistrer un commentaire