title: Android - "Connecting to Google Play" still gives Error Code 4?
body: <p>I'm still a bit new to the Google APIs and the <code>GoogleApiClient</code> class, so I followed <a href="https://developers.google.com/+/mobile/android/sign-in" rel="nofollow">this tutorial</a> hoping to get set up enough to display a leaderboard.</p>
  
  <p>At the moment I've implemented this code into my game activity.</p>
  
  <pre><code>public void onConnectionFailed(ConnectionResult arg0) {
      Log.d("fes", "error " + arg0.getErrorCode());
      if (!isGooglePlayIntentOpen &amp;&amp; arg0.hasResolution()) {
          try {
              isGooglePlayIntentOpen = true;
              startIntentSenderForResult(arg0.getResolution()
                      .getIntentSender(), 10, null, 0, 0, 0);
          } catch (SendIntentException ex) {
              isGooglePlayIntentOpen = false;
              this.getApiClient().connect();
          }
      }
  }
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      if (requestCode == 10) {
          isGooglePlayIntentOpen = false;
          if (!this.getApiClient().isConnecting() &amp;&amp; !this.getApiClient().isConnected()) {
              this.getApiClient().connect();
          }
      }
  }
  </code></pre>
  
  <p>This does, in fact, pop up a small intent that says "Connecting to Google Play", followed by a selection of an account. Which is as expected.</p>
  
  <p>However, every time <code>onConnectionFailed</code> gets called, the error code appears to be <em>4</em>.</p>
  
  <p>According to <code>ConnectionResult</code>, 4 means <em>Sign-in Required</em>.</p>
  
  <p>What gives? Even after attempting to "sign in" on multiple accounts, I still get the same error code. Do I somehow need to pass the sign-in result to my <code>GoogleApiClient</code>?</p>
  
  <p>Cheers!</p>