title: Connection to google Play Services Failed
body: <p>i trying to upload video using this <strong>YouTube Direct Lite App</strong> for Android project <a href="https://code.google.com/p/ytd-android/" rel="nofollow">https://code.google.com/p/ytd-android/</a> </p>
  
  <p>I performed all the steps mentioned in the link. </p>
  
  <p>the appliction run in my android device fine but i recive toast "Connection to Play Services failed"  and "An internal error occurred" toast. </p>
  
  <p>and this log error: </p>
  
  <pre><code>05-07 11:17:33.659: E/com.google.ytdl.UploadsListFragment(3140): Connection to Play Services Failed, error: 4, reason: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{41836358: android.os.BinderProxy@41779308}}
  </code></pre>
  
  <p>In order to find out what the problem is, i chacked the api key that i generated in here :</p>
  
  <p><a href="https://code.google.com/apis/console" rel="nofollow">https://code.google.com/apis/console</a></p>
  
  <pre><code>Simple API Access
  Use API keys to identify your project when you do not need to access user data. Learn more
  Key for Android apps (with certificates)
  API key:    
  xxxxxxxxxxxxxxxxxx
  Android apps:   
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;com.google.ytdl
  Activated on:   Apr 16, 2013 11:30 AM
  Activated by:    xxxxx@gmail.com – you
  </code></pre>
  
  <p>and it look fine. </p>
  
  <p>i red those links : 
  <a href="https://developers.google.com/+/mobile/android/sign-in" rel="nofollow">https://developers.google.com/+/mobile/android/sign-in</a>
  <a href="http://developer.android.com/google/play-services/auth.html#choose" rel="nofollow">http://developer.android.com/google/play-services/auth.html#choose</a></p>
  
  <p>Anyone encountered this and know what is due to the problem? The only thing I can think of it's the api key but it seems proper, help ...</p>
  
  <p>edite :</p>
  
  <p><em>Access Token</em></p>
  
  <pre><code> mToken =
                GoogleAuthUtil.getToken(MainActivity.this, mChosenAccountName, "oauth2:"
                    + Scopes.PLUS_PROFILE + " " + YouTubeScopes.YOUTUBE + " "
                    + YouTubeScopes.YOUTUBE_UPLOAD);
  </code></pre>