I am trying to install a pre-built SQLite database as per the following suggestions:
http://blog.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/
I am getting errors when I try to open the database. More specifically, I am having to split the file and cat the fragments together on the android device and use them. This seems to succeed but then one sees errors when the Android app tries to use the database.
On first launch, it gives an error
See https://github.com/rkiddy/android-database-first-loading
The error is:
09-10 16:54:35.876 1300-1300/org.ganymede.databaseloadingapp E/SQLiteLog﹕ (5) database is locked
09-10 16:54:35.877 1300-1300/org.ganymede.databaseloadingapp E/SQLiteDatabase﹕ Failed to open database '/data/data/org.ganymede.databaseloadingapp/databases/MyDB.db'.
android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5): , while compiling: PRAGMA journal_mode