/** * Hook method called when the DownloadActivity becomes completely hidden to unbind the Activity * from the Services. */ @Override public void onStop() { super.onStop(); // Unbind the Sync/Async Services if they are bound. Use // mBoundSync/mBoundAsync if (mDownloadCall != null) unbindService(mServiceConnectionSync); if (mDownloadRequest != null) unbindService(mServiceConnectionAsync); }