public DataBaseAdapter createDatabase() throws SQLException { try { mDbHelper.createDataBase(); mDbHelper.openDataBase(); mDbHelper.close(); } catch (IOException mIOException) { Log.e(TAG, mIOException.toString() + " UnableToCreateDatabase"); throw new Error("UnableToCreateDatabase"); } return this; }
public void close() { mDbHelper.close(); }