title: GoogleApiClient connect always fails first time but gets successful second time
body: <p>I have a google plus login set up for app through <code>GoogleApiClient</code>.</p>
  
  <p>Whenever the app is installed first time and tries to make connection through <code>GoogleApiClient</code> it never gets successful and always end up at <code>onConnectionFailed</code> with <code>result</code> containing:</p>
  
  <pre><code>ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{4130e760: android.os.BinderProxy@4130e700}}
  </code></pre>
  
  <p>But when second time login its called it gets successful and <code>onConnected</code> hits. Why is that is it possible to make it successful over the first attempt?</p>
  
  <p>Is there something wrong in my <code>Builder</code> parameters?</p>
  
  <pre><code>public void connectGoogleApi() {
      mGoogleApiClient = new GoogleApiClient.Builder(mainAppContext).addConnectionCallbacks(this).addOnConnectionFailedListener(this).addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN).build();
      mGoogleApiClient.connect();
  }
  
  public void onConnectionFailed(ConnectionResult result) {
      if (!result.hasResolution()) {
          GooglePlayServicesUtil.getErrorDialog(result.getErrorCode(), this, 0).show();
          return;
      }
  
      if (!mIntentInProgress) {
          // Store the ConnectionResult for later usage
          mConnectionResult = result;
          resolveSignInError();
      }
  
  }
  </code></pre>