We have a sqlite database in our Application. Its working fine for all the users but few of them experiencing the Caused by: android.database.sqlite.SQLiteException: n
try remove getReadableDatabase
if (!dbExist) {
synchronized (this) {
db_Read = this.getReadableDatabase();
Log.e("Path 2", this.getReadableDatabase().getPath());
db_Read.close();
copyDataBase();
Log.v("copyDataBase---", "Successfully");
}
to
if (!dbExist) {
synchronized (this) {
//db_Read = this.getReadableDatabase();
// Log.e("Path 2", this.getReadableDatabase().getPath());
// db_Read.close();
copyDataBase();
Log.v("copyDataBase---", "Successfully");
}