Android 6.0 permission.GET_ACCOUNTS

后端 未结 6 987
予麋鹿
予麋鹿 2020-12-24 11:47

I\'m using this to get permission:

if (ContextCompat.checkSelfPermission(context, Manifest.permission.GET_ACCOUNTS) != PackageManager.PERMISSION_GRANTED) {

         


        
6条回答
  •  独厮守ぢ
    2020-12-24 12:13

    I got your question wrong first. On this page http://developer.android.com/guide/topics/security/permissions.html#perm-groups, your can see that GET_ACCOUNTS refers to the permission group contacts. Because of that your are prompted for contact permission.

提交回复
热议问题