Android - Attempt to write in a readonly database when I open it readonly
- by DLock
i don't understand this at all.
I try to open a db located in my SD card this way:
db = SQLiteDatabase.openDatabase(myPath, null,
SQLiteDatabase.NO_LOCALIZED_COLLATORS | SQLiteDatabase.OPEN_READONLY);
But in that very line it throws this exception:
android.database.sqlite.SQLiteException: attempt to write a readonly database
It…