@Override public void onDetach() { super.onDetach(); if (dbTask != null) dbTask.cancel(true); if (groupTask != null) groupTask.cancel(true); }