Code example for SQLiteDatabase

Methods: setVersion

0
mDatabase =
        SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(),
            null); 
      assertTrue(mDatabase != null);
      mDatabase.setVersion(CURRENT_DATABASE_VERSION);
    } 
 
    public void tearDown() { 
      mDatabase.close();
      mDatabaseFile.delete();
    } 
 
    public boolean isPerformanceOnly() { 
      return true; 
    } 
 
    // These tests can only be run once. 
    public int startPerformance(Intermediates intermediates) {
      return 0; 
    }