I am implementing an app where I make database calls frequently.
I open the database using following code:
public DataBaseHelper open() throws SQLException {
mDbHelper = new DatabaseHelper(this.mCtx);
this.mDb = mDbHelper.getWritableDatabase();
return this;
}
but I get database locked exception in the following line:
this.mDb = mDbHelper.getWritableDatabase();
Please help me fix this exception.
Thanks in advance