I'm trying to run the task-android-sample code that I found here: http://samples.google-api-java-client.googlecode.com/hg/tasks-android-sample/instructions.html
I successfully imported it to Eclipse and added all the necessary dependencies using the Google Eclipse plugin: https://developers.google.com/eclipse/docs/googleapis
I changed the package name of the project's package to a custom value, which was suggested by the instruction.
I created a new project in my Google Developer Console, made sure that the Tasks API is ON, and added a new key in the credentials tab. Inside the key I inserted my SHA1 certificate fingerprint (which I took from Eclipse: Window/Preferences/Android/Build), and my newly changed package name.
When I run the sample app from Eclipse, I see two dialogs asking me to give it permissions to access the tasks, and then the following message:
[Error] Access Not Configured. Please use Google Developers Console to activate the API for your project.
My LogCat displays the following:
02-11 20:33:32.593: E/TasksSample(9231): Error
02-11 20:33:32.593: E/TasksSample(9231): com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
02-11 20:33:32.593: E/TasksSample(9231): {
02-11 20:33:32.593: E/TasksSample(9231): "code": 403,
02-11 20:33:32.593: E/TasksSample(9231): "errors": [
02-11 20:33:32.593: E/TasksSample(9231): {
02-11 20:33:32.593: E/TasksSample(9231): "domain": "usageLimits",
02-11 20:33:32.593: E/TasksSample(9231): "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project.",
02-11 20:33:32.593: E/TasksSample(9231): "reason": "accessNotConfigured"
02-11 20:33:32.593: E/TasksSample(9231): }
02-11 20:33:32.593: E/TasksSample(9231): ],
02-11 20:33:32.593: E/TasksSample(9231): "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."
02-11 20:33:32.593: E/TasksSample(9231): }
02-11 20:33:32.593: E/TasksSample(9231): at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
02-11 20:33:32.593: E/TasksSample(9231): at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
02-11 20:33:32.593: E/TasksSample(9231): at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:312)
02-11 20:33:32.593: E/TasksSample(9231): at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1045)
02-11 20:33:32.593: E/TasksSample(9231): at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410)
02-11 20:33:32.593: E/TasksSample(9231): at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
02-11 20:33:32.593: E/TasksSample(9231): at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
02-11 20:33:32.593: E/TasksSample(9231): at pl.bartoszwesolowski.taskssample.AsyncLoadTasks.doInBackground(AsyncLoadTasks.java:38)
02-11 20:33:32.593: E/TasksSample(9231): at pl.bartoszwesolowski.taskssample.CommonAsyncTask.doInBackground(CommonAsyncTask.java:53)
02-11 20:33:32.593: E/TasksSample(9231): at pl.bartoszwesolowski.taskssample.CommonAsyncTask.doInBackground(CommonAsyncTask.java:1)
02-11 20:33:32.593: E/TasksSample(9231): at android.os.AsyncTask$2.call(AsyncTask.java:288)
02-11 20:33:32.593: E/TasksSample(9231): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
02-11 20:33:32.593: E/TasksSample(9231): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
02-11 20:33:32.593: E/TasksSample(9231): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
02-11 20:33:32.593: E/TasksSample(9231): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
02-11 20:33:32.593: E/TasksSample(9231): at java.lang.Thread.run(Thread.java:841)
Was anyone able to run the sample code successfully? What can I do to get rid of the error?