Android Question Sqlite database on microsd card

Tim Chapman

Active Member
Licensed User
Longtime User
I am trying to do just what the title says. I am having no success with initializing a sqlite db on a microsd card on Android. Does anyone know how to do this?

The normal db.Initialize(folderPath, DBNAME, True) won't work. Is there a work around for this?

This is the error I get:

Stack trace: (SQLiteCantOpenDatabaseException) android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file (code 1806 SQLITE_CANTOPEN_ENOENT[1806]): No such file or directory
 

DonManfred

Expert
Licensed User
Longtime User
What exactly is the value of folderPath?
You know that you do not have access to paths outside DirInternal, rigth? At least on higher android versions.

 
Upvote 0
Top