title: Authorize and access Google Tasks API from Android app?
body: <p>I'm trying to add support for Google Tasks to my app -- specifically, the app should be able to add a new tasks.</p>
  
  <p>I've spent most of this week trying to accomplish this without success. Specifically, I've not managed to get my app fully authorized to access the API. I've found 3-5 different tutorials or sets of documentation for how to do it:</p>
  
  <ul>
  <li><a href="https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android" rel="nofollow">https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android</a></li>
  <li><a href="https://google-api-client-libraries.appspot.com/documentation/tasks/v1/java/latest/index.html" rel="nofollow">https://google-api-client-libraries.appspot.com/documentation/tasks/v1/java/latest/index.html</a></li>
  <li><a href="https://developers.google.com/google-apps/tasks/instantiate" rel="nofollow">https://developers.google.com/google-apps/tasks/instantiate</a></li>
  <li><a href="http://developer.android.com/google/play-services/auth.html" rel="nofollow">http://developer.android.com/google/play-services/auth.html</a></li>
  <li><a href="http://developer.android.com/reference/com/google/android/gms/auth/GoogleAuthUtil.html" rel="nofollow">http://developer.android.com/reference/com/google/android/gms/auth/GoogleAuthUtil.html</a></li>
  <li><a href="http://code.google.com/p/google-api-java-client/wiki/OAuth2" rel="nofollow">http://code.google.com/p/google-api-java-client/wiki/OAuth2</a></li>
  </ul>
  
  <p>Many of the above appear to contradict one another, or at least use different APIs whose overlap isn't immediately apparent to me. The closest I've come is via the sample code referenced in the first link above (http://bit.ly/UHTKNW). I can get that to compile and run, and even to request permission from the user to access Tasks, as expected. But it then fails with a 403 Forbidden "access not configured" exception. I'm presuming I need to supply an API Key and/or client secret, but the APIs used in the example don't appear to provide an obvious way to do that. I'm also not clear on whether I need to set up a signing certificate fingerprint to make this work, and if so how to go about doing that.</p>
  
  <p>So I'm stuck, confused, and super-frustrated. Any help would be greatly appreciated.</p>
  
  <p>Thanks.
  --Dave</p>