src/com/closedcircles/client/activities/LoginActivity.java
/* onConnectionFailed is called when our Activity could not connect to Google
     * Play services.  onConnectionFailed indicates that the user needs to select
     * an account, grant permissions or resolve an error in order to sign in.
     */
onConnectionFailed is called when our Activity could not connect to Google
Play services.  onConnectionFailed indicates that the user needs to select
an account, grant permissions or resolve an error in order to sign in.
onConnectionFailed is called when our Activity could not connect to Google Play services . onConnectionFailed indicates that the user needs to select an account grant permissions or resolve an error in order to sign in .
@Override
    public void onConnectionFailed(ConnectionResult result) {
        Log.i(TAG, "onConnectionFailed: ConnectionResult.getErrorCode() = "
                + result.getErrorCode());
        if (mSignInProgress != STATE_IN_PROGRESS) {
            mSignInIntent = result.getResolution();
            mSignInError = result.getErrorCode();
            if (mSignInProgress == STATE_SIGN_IN) {
                resolveSignInError();
            }
        }
        onSignedOut();
    }
@ Override public void onConnectionFailed ( ConnectionResult result ) { Log . i ( TAG , "onConnectionFailed: ConnectionResult.getErrorCode() = " + result . getErrorCode ( ) ) ; if ( mSignInProgress != STATE_IN_PROGRESS ) { mSignInIntent = result . getResolution ( ) ; mSignInError = result . getErrorCode ( ) ; if ( mSignInProgress == STATE_SIGN_IN ) { resolveSignInError ( ) ; } } onSignedOut ( ) ; }
onConnectionFailed is called when our Activity could not connect to Google
 Play services.
onConnectionFailed is called when our Activity could not connect to Google Play services .
// Refer to the javadoc for ConnectionResult to see what error codes might // be returned in onConnectionFailed. // We do not have an intent in progress so we should store the latest // error resolution intent for use when the sign in button is clicked. // STATE_SIGN_IN indicates the user already clicked the sign in button // so we should continue processing errors until the user is signed in // or they click cancel. // In this sample we consider the user signed out whenever they do not have // a connection to Google Play services.