title: How to handle disconnect from Google Game Services?
body: <p>I use Google Game Services for leaderboards. Showing it like this:</p>
  
  <pre><code>static public void showLeaderboard(String lid)
  {
    if (isLogined() == 1)
    {
      Log.i(TAG, "Showing leaderboard...");
      Intent intent = Games.Leaderboards.getLeaderboardIntent(mClient, lid);
      mApp.startActivityForResult(intent, 1);
    }
  }
  
  static public int isLogined()
  {
    if (mClient != null &amp;&amp; mClient.isConnected())
      return 1;
    return 0;
  }
  </code></pre>
  
  <p>But when I open leaderboards and logout from Google Game Services with Google UI (Action Overflow menu icon -> Settings -> Sign out) I keep having my isLogined() == 1. So, when I call showLeaderboard() second time - game falls with exception:</p>
  
  <pre><code>java.lang.SecurityException: Not signed in when calling API
  </code></pre>
  
  <p>GoogleApiClient has callbacks for connection but not for disconnection.
  How can I handle sing out from GGS with google UI?</p>