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