I followed all the steps mentioned in google drive sdk. I created a sample application on my device(android, running jelly bean) and am able to upload a file on to drive. Wh
This is a known issue that will be resolved with the release of the Google Play Services APIs.
Since your application is authorized for the https://www.googleapis.com/auth/drive.file
scope, and the download endpoint doesn't support the ?key=
query parameter, there is no way for our server to know which project is issuing the request (to make sure the app has authorization to read this file's content).
In the meantime, the only workaround I can recommend is using the broad scope: https://www.googleapis.com/auth/drive
. Please use only that while developing your application and waiting for the Google Play Services to be released.
To learn more about how you will be able to use the new authorization APIs in Android, you might be interested in those 2 Google I/O talks: Building Android Applications that Use Web APIs and Writing Efficient Drive Apps for Android