override public void OnResume() { base.OnResume(); if (mRequestCode == INVALID_REQUEST_CODE) { // No user interaction, hide the progress dialog. hideProgressDialog(); hideErrorDialog(); } else if (mLastConnectionResult != null && !mLastConnectionResult.IsSuccess() && !isShowingErrorDialog()) { showProgressDialog(); } }