Apps Developer Blog

Information for Google Apps Developers

Using Google Tasks API and OAuth 2.0 on Android

August 29, 2011
Share on Google+ Share on Twitter Share on Facebook
Google
Labels: Android , Google Tasks API , oauth

7 comments :

Abraham Williams said...

Does this mean you are building a Tasks Android app? *wink* *wink*

August 29, 2011 at 5:54 PM
Ochieng, Edmund said...

Hi Nicolas, I just went through the post and its quite understandable. I would like to confirm that the 'Tasks' class used in the useTasksAPI() has since been removed from the google-api-java-client ( com.google.api.services.tasks.Tasks).

How would be the best way to handle the portion thereafter if so?

October 17, 2011 at 8:46 AM
Nivco said...

Hey Edmund,

The Tasks class seems to still exist, here is the link to its Javadoc for v1.2.2

http://javadoc.google-api-java-client.googlecode.com/hg/apis/tasks/v1/index.html

and you can see it in the sources as well.

Maybe you are having an import issue? the problem is that com.google.api.services.tasks.Tasks and com.google.api.services.tasks.model.Tasks share the same name so you have to reference to the full class name instead of importing the class.

Cheers!

October 18, 2011 at 5:23 AM
atraudes said...

I went through this tutorial (VERY helpful, by the way), and I had no trouble with it except that I tried using a custom string for AUTH_TOKEN_TYPE as suggested, but the phone kept having me (the user) enter my password over and over, even though it was correct. It wasn't until I changed it to "android" that it worked the way I expected.

That being said I really appreciate the tutorial and the effort to make interfacing with Google's App Engine from Android this simple.

January 25, 2012 at 9:43 AM
Shahzad said...

Caught in the same prob...

March 23, 2012 at 12:29 AM
Numan Salati said...

The link https://developers.google.com/google-apps/oauth-android-auth-token-type-aliases mentioned in the task samples (https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android) is broken

May 14, 2012 at 6:47 PM
Aadam Gibson said...

"In order for your Android application to use the Tasks API several steps are necessary, you need to:
1) Select the Google Account of the user
2) Get an OAuth 2.0 access token from the AccountManager for the Task API
3) Identify your project and set up the Tasks service Object
4) Make calls to the Tasks API"

August 22, 2012 at 5:38 AM

Post a Comment

  

Labels


  • .NET 3
  • #io15 1
  • Administrative APIs 26
  • Admin SDK 4
  • AdSense 1
  • analytics 4
  • Android 5
  • App Engine 5
  • Apps Script 98
  • Auth 1
  • billing 4
  • Charts 1
  • Chrome OS 1
  • classroom 1
  • Cloud Storage API 1
  • Community 1
  • Developers 5
  • Directory API 1
  • Drive 2
  • Drive SDK 38
  • execution API 1
  • Firebase 1
  • Freemium 1
  • Fusion Tables 2
  • Gadgets 5
  • Gmail APIs 16
  • Google+ 3
  • Google APIs 3
  • Google Apps 3
  • Google Apps Directory API 1
  • Google Apps Marketplace 3
  • Google Apps Script 1
  • Google Calendar API 20
  • Google Contacts API 3
  • Google Data Protocol 7
  • google docs 3
  • Google Docs API 20
  • Google Drive 2
  • Google Forms 4
  • Google I/O 3
  • googlenew 1
  • Google Prediction API 3
  • Google Profiles API 2
  • Google sheets 2
  • Google Sites API 4
  • Google Spreadsheets API 4
  • Google Talk 1
  • Google Tasks API 6
  • Groups 2
  • Guest Post 42
  • ISVs 2
  • java 1
  • JavaScript 3
  • marketing 3
  • Marketplace 47
  • Marketplace ISV Guest 21
  • Migration 1
  • Mobile 1
  • mpstaffpick 1
  • oauth 11
  • OpenID 7
  • PHP 1
  • python 4
  • realtime API 1
  • Resellers 2
  • Ruby 1
  • SaaS 1
  • security 1
  • Staff Picks 2
  • webinar 2


Archive


  •     2015
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
  •     2014
    • Dec
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Mar
    • Feb
    • Jan
  •     2013
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2012
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2011
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2010
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb

Feed

Company-wide

  • Official Google Blog
  • Public Policy Blog
  • Student Blog

Products

  • Android Blog
  • Chrome Blog
  • Lat Long Blog

Developers

  • Developers Blog
  • Ads Developer Blog
  • Android Developers Blog
  • Google
  • Privacy
  • Terms