示例#1
0
 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;
 }
示例#2
0
 public void close() {
   mDbHelper.close();
 }