android - Unable to copy sqlite database from assets to internal memory -


we trying copy sqlite database stored in assets folder local directory on actual phone unable so. checkdatabase tails database exists code fails when try read data phone. ( tried view database through ddms doesn't show there)

phone have os 2.3.4

saw various folks have complained on stackoverflow did not find solution.

is related https://code.google.com/p/android/issues/detail?id=949

also tried below library

https://github.com/jgilfelt/android-sqlite-asset-helper

sample code provided in fails while copying database , gives below error

sqlite3_open_v2("/mnt/sdcard/android/data/com.sqliteassethelper.example/files/northwind", &handle, 2, null) failed 

consider using library , magic https://github.com/jgilfelt/android-sqlite-asset-helper hope you


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -