Android getAuthToken returns a null token

后端 未结 1 557
南方客
南方客 2021-01-26 11:05

Well i need to authorize Google Calendar\'s access for a user, first google Id works fine when i use

blockingGetAuthToken

and it gets a t

1条回答
  •  北恋
    北恋 (楼主)
    2021-01-26 11:38

    Ok it works fine when i use

    getAuthToken (Account account, String authTokenType, Bundle options, Activity activity, AccountManagerCallback callback, Handler handler)
    

    The activity parameter solved the problem..

    0 讨论(0)
提交回复
热议问题