@Override public void onDestroy() { if (db != null) db.close(); super.onDestroy(); }
public void doPositiveClick(Bundle bundle) { Database db = new Database(getBaseContext()); db.resetAllData(); finish(); }