GoogleAccountCredential name is null despite calling setSelectedAccountName (Android 6.0)

穿精又带淫゛_ 提交于 2019-11-28 12:09:17

Yes with Android 6.0 Marshmallow, you will now need to request permissions at run time https://developer.android.com/training/permissions/index.html

In order to get those credentials you need the GET_ACCOUNTS permission in the CONTACTS group

https://developer.android.com/guide/topics/security/permissions.html#normal-dangerous

You will have to request it in your activity/fragment and handle any UX pertaining to your app.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!