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