title: Persist Google Play Services login between activities
body: <p>I thought this would be straightforward, but I've been going in circles trying to figure out how to keep a user logged in between <code>Activities</code>.  </p>
  
  <p>I have a "Main" and a "Details" <code>Activity</code>.  A user logs into <code>Google Play Services</code> in the "Main" <code>Activity</code> and I want to submit achievements and leaderboard data in the "Details" <code>Activity</code>.</p>
  
  <p>I'm inheriting from <code>BaseGameActivity</code> in both <code>Activities</code> and using:</p>
  
  <pre><code> mGoogleApiClient = getApiClient();
  </code></pre>
  
  <p>in "Details", however when I call <code>isConnected</code> it always returns <code>false</code>.</p>
  
  <p>I even tried copying all the login/callback code from the "Main" <code>Activity</code> over, but it's still doesn't detect the user is logged in.</p>
  
  <p>This post suggests not using <code>BaseGameActivity</code> and pass <code>GameHelper</code> using a <code>singleton</code>:</p>
  
  <p><a href="https://stackoverflow.com/questions/24147835/how-to-use-basegameactivity-getapiclient-in-multiple-activities">How to use BaseGameActivity.getApiClient() in multiple activities?</a></p>
  
  <p>Not sure what the correct approach is.</p>