public static void createAndInitializeNewDbFile(){
  File dbTmpFile=GpsTrailerDbProvider.getDbFile(true);
  SQLiteDatabase newDb=GpsTrailerDbProvider.createNewDbFile(dbTmpFile);
  GpsTrailerCrypt.generateAndInitializeNewUserDataEncryptingKey(GTG.MASTER_APP_ID,newDb);
  newDb.close();
  dbTmpFile.renameTo(GpsTrailerDbProvider.getDbFile(false));
}

public static void createAndInitializeNewDbFile ( ) { File dbTmpFile = GpsTrailerDbProvider . getDbFile ( true ) ; SQLiteDatabase newDb = GpsTrailerDbProvider . createNewDbFile ( dbTmpFile ) ; GpsTrailerCrypt . generateAndInitializeNewUserDataEncryptingKey ( GTG . MASTER_APP_ID , newDb ) ; newDb . close ( ) ; dbTmpFile . renameTo ( GpsTrailerDbProvider . getDbFile ( false ) ) ; }
creates an initializes a db ( including creating a user data encrypting key . crypt in preferences must be already set up . database is closed after being initialized
