@Override public void onStop() { // save timestamp SharedPreferences settings = getActivity().getSharedPreferences(SHARED, 0); SharedPreferences.Editor editor = settings.edit(); editor.putLong(TIMESTAMP, timestamp); mDBAdapter.close(); super.onStop(); }
@Override public void onStop() { super.onStop(); if (mBound) { getActivity().unbindService(mConnection); mBound = false; Log.i("HabrQA", "Service stopped"); } }
@Override public void onStop() { super.onStop(); if (mAdapter != null) mAdapter.changeCursor(null); }
@Override public void onStop() { super.onStop(); quickAddBar.destroyRecognizerApi(); }
@Override public void onStop() { super.onStop(); getActivity().unbindService(mServiceConnection); }
@Override public void onStop() { super.onStop(); itsSyncTask.cancel(); }
@Override public void onStop() { super.onStop(); dpApp.removeApiListener(this); }