コード例 #1
0
  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);
  }
コード例 #2
0
 @Override
 protected void onDestroy() {
   characterdataDb.close();
   weaponDb.close();
   statsDb.close();
   armorDb.close();
   itemDb.close();
   achievementDatabase.close();
   super.onDestroy();
 }
コード例 #3
0
 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();
 }