public void close() { if (mDb != null) { mDbHelper.close(); mDb = null; } }
public void open() throws SQLException { if (mDb == null) { mDb = mDbHelper.getWritableDatabase(); } }