我有几个关于 AccountManager
类的 getAuthToken()
方法的问题。
- “authTokenType”可以取什么值?到目前为止,我只看到它取值“啊”。
getAuthToken(Account,String,boolean,AccountManagerCallback, Handler)
已被弃用,取而代之的是它的重载对应项,它也采用Bundle
作为参数。它起什么作用? 我阅读了文档,但无法理解它。
最佳答案
如 docs 中的内容说,
The auth token type, an authenticator-dependent string token, must not be null
此值应与您在 android:accountType
属性下的身份验证器元数据文件 (res/xml/authenticator.xml) 中输入的值相同
关于android - 基本的 getAuthToken() 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29166463/