public void open() throws SQLiteException { try { mDB = dbhelper.getWritableDatabase(); } catch (SQLiteException ex) { // Log.v("Open database exception caught", ex.getMessage()); mDB = dbhelper.getReadableDatabase(); } }
public void upgradeDBVersion() { dbhelper.onUpgrade(mDB, getDBVersion(), Constants.DATABASE_VERSION); }
public int getDBVersion() { return dbhelper.getDBVersion(mDB); }
public void close() { mDB.close(); dbhelper.close(); }