Cannot open my database on the android device, but can on the emulator
问题 Can anyone explain what's the problem? I developed my application which uses my own database. All worked fine, but in one day I began to receive the error at long rowsCount = DatabaseUtils.queryNumEntries(myDataBase, table); The error is android.database.sqlite.SQLiteDatabaseCorruptException: database disk image is malformed: , while compiling: SELECT count(*) FROM words The strangest in that I receive the error only on my device (lg p500), and the program works fine on the emulator. My code