I open a sqlite database and use rawquery to get data.
But the log.e show the information:
android.database.sqlite.SQLiteException: no such table: types:
But, I really have this table.
And i also try to use the other sql ,But also get the error message such as
android.database.sqlite.SQLiteException: no such table: malls:
I am sure there are this two tables.
So why get the error message?
If this is on the emulator, use DDMS File Explorer or
adb pullto download a copy of the database file and confirm its contents.If you are attempting to copy the file in
SQLiteOpenHelper‘sonCreate(), you are too late. I would do it before then.It is more likely you would get an error about a corrupt file in that case.