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?
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.
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.
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
"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"
7 comments :
Does this mean you are building a Tasks Android app? *wink* *wink*
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?
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!
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.
Caught in the same prob...
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
"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"
Post a Comment