Backup Database on Android

You must Login before you can answer or comment on any questions.

I'm trying to backup my database (android) but I can't find the database file.

..
db = Titanium.Database.open('dbname'); 
..
and I try to access it with:
var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,'databases', 'dbname');
alert(f.exists()) // false
SDK 2.1.3 Plattform: Android 4

— asked 7 months ago by Michael G
0 Comments

2 Answers

have you tried

var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory+"/databases/dbname');
alert (f.size);

Your Answer

Think you can help? Login to answer this question!