示例#1
0
 /** Deletes notifications and tests data from database */
 protected void cleanDatabase() {
   dbHelper.cleanTables();
   prefs.setLastCourseSelected(0);
   prefs.setRollcallCourseSelected(-1);
   Global.setSelectedRollcallCourseCode(-1);
   Toast.makeText(this, R.string.cleanDatabaseMsg, Toast.LENGTH_LONG).show();
   Log.i(Global.APP_TAG, getString(R.string.cleanDatabaseMsg));
 }
示例#2
0
 /* (non-Javadoc)
  * @see android.app.Activity#onDestroy()
  */
 @Override
 protected void onDestroy() {
   dbHelper.close();
   super.onDestroy();
 }