I have one sqlite database file and I am not able to read and write on this database file.
I am using this code:
fileIsExists = new File(Environment.getExternalStorageDirectory()
+ "/bbmp/bbmp2.sqlite");
if (fileIsExists.exists()) {
db = SQLiteDatabase.openDatabase(fileIsExists.toString(), null,
SQLiteDatabase.OPEN_READWRITE);
}
This throw following error:
10-01 17:09:17.343: E/Database(9216): DELETE failed setting locale
10-01 17:09:17.374: E/Database(9216): Failed to setLocale() when constructing, closing the database
10-01 17:09:17.374: E/Database(9216): android.database.sqlite.SQLiteException: attempt to write a readonly database
10-01 17:09:17.374: E/Database(9216): at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
10-01 17:09:17.374: E/Database(9216): at android.database.sqlite.S