Android 6.0 permission.GET_ACCOUNTS

后端 未结 6 964
予麋鹿
予麋鹿 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:30

    Fortunately this will change in Android N

    http://developer.android.com/preview/behavior-changes.html#perm

    The GET_ACCOUNTS permission is now deprecated. The system ignores this permission for apps that target Android N.

提交回复
热议问题