Beispiel #1
0
 /* ************************************
  *              GOOGLE                *
  **************************************
  */
 /* A helper method to resolve the current ConnectionResult error. */
 private void resolveSignInError()
 {
     if (mGoogleConnectionResult.hasResolution())
     {
         try
         {
             mGoogleIntentInProgress = true;
             mGoogleConnectionResult.startResolutionForResult(this, RC_GOOGLE_LOGIN);
         }
         catch (IntentSender.SendIntentException)
         {
             // The intent was canceled before it was sent.  Return to the default
             // state and attempt to connect to get an updated ConnectionResult.
             mGoogleIntentInProgress = false;
             mGoogleApiClient.connect();
         }
     }
 }