I'm pretty new using ORMLite with android, and I read in this question that the method onCreate() of the class OrmLiteSqliteOpenHelper is not called when the database already exists... but I'd like to confirm it by myself, does anyone know how to check if the database exists?
-
i haven't written a single line of android code in my whole life. here is my answer: an sqlite database is just a file. if the database file exists, the database exists. otherwise it exists not.Michael– Michael2014-05-03 22:04:15 +00:00Commented May 3, 2014 at 22:04
-
I understand your point, but I read that ORMLite creates the database in a local storage folder... and you can't access that folder without super user permissions, so... that way it's not as easy as it sounds.amilcar-sr– amilcar-sr2014-05-03 22:09:38 +00:00Commented May 3, 2014 at 22:09
-
hmm. if sqlite has readaccess there, your app should have too, no? sqlite is just an ordinary library. or are you communicating with it through some local RPC mechanism?Michael– Michael2014-05-03 22:12:37 +00:00Commented May 3, 2014 at 22:12
-
SQLite is a very light weight database which comes with Android OS. The database exists with 2 two default tables android_metadata & sqlite_sequence.Junius L– Junius L2014-05-03 22:26:30 +00:00Commented May 3, 2014 at 22:26
Add a comment
|