If this is on the emulator, use DDMS File Explorer or adb pull
to download a copy of the database file and confirm its contents.
And i crate a custom SQLiteOpenHelper
to copy this file to path :
/data/data/com.SGMalls/databases/mallMapv2.sqlite
If you are attempting to copy the file in SQLiteOpenHelper
‘s onCreate()
, you are too late. I would do it before then.
So the copy file code may be can not
copy the complete file.
It is more likely you would get an error about a corrupt file in that case.