This error comes from the getWritableDatabase statement, where you are trying to create / open a database.
From the code segment that you specified, I see that you are trying to open a database for each operation.
. , . . , open db
: manegr :
public DataBaseManager open() throws SQLException {
try {
mDbHelper = new DatabaseHelper(mCtx);
mDb = mDbHelper.getWritableDatabase();
} catch (Exception ex) {
ex.printStackTrace();
Utils.getHomeActivityinstance().finish();
}
return this;
}
, delte,
public boolean deleteRow(String tableName, long rowId) {
return mDb.delete(tableName, ID + "=" + rowId, null) > 0;
}