I\'m trying to set up an Android app that can manipulate files stored on my personal Google Drive account using the guidelines at Google Drive REST API Overview.
I\'
One thing I can think of is that the value of setSelectedAccountName
will default in to null
if no PREF_ACCOUNT_NAME
was retrieved, so this may contribute to the issue.
The only difference I can see that you did was how you instantiated the mCredential
. Try to check out the Authorizing requests for Android (using GoogleApiClient
instead of GoogleAccountCredential
.