private void saveInput() { String characterName = name.getText().toString(); new CreateCharacterTask(this, this).execute(address, characterName, sexTyp, weaponTyp, usernr); characterdataDb.updateCreatecharacter(characterName, sexTyp); itemDb.insertNewItem(1, 2); }
@Override protected void onDestroy() { characterdataDb.close(); weaponDb.close(); statsDb.close(); armorDb.close(); itemDb.close(); achievementDatabase.close(); super.onDestroy(); }
private void initDB() { characterdataDb = new CharacterdataDatabase(this); characterdataDb.open(); weaponDb = new WeaponDatabase(this); weaponDb.open(); statsDb = new StatsDatabase(this); statsDb.open(); armorDb = new ArmorDatabase(this); armorDb.open(); achievementDatabase = new AchievementDatabase(this); achievementDatabase.open(); itemDb = new ItemDatabase(this); itemDb.open(); }