@Override public void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); if (db != null) db.close(); }