Esempio n. 1
0
        // Perform resolution given a non-null result.
        private void resolveLastResult()
        {
            if (GooglePlayServicesUtil.IsUserRecoverableError(mLastConnectionResult.GetErrorCode()))
            {
                // Show a dialog to install or enable Google Play services.
                showErrorDialog(ErrorDialogFragment.Create(mLastConnectionResult.GetErrorCode(),
                                                           mRequestCode));
                return;
            }

            if (mLastConnectionResult.HasResolution())
            {
                startResolution();
            }
        }