Infinite “Choose an account” loop when using Google Drive API

前端 未结 3 1035
日久生厌
日久生厌 2020-12-10 08:31

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\'

3条回答
  •  春和景丽
    2020-12-10 09:15

    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.

提交回复
热议问题