-1
A
回答
0
GET_ACCOUNTS之前位于身份权限组中。
它的Android移动到联系人权限组6
https://developer.android.com/reference/android/Manifest.permission.html#GET_ACCOUNTS
0
Identity – With this permission the app can find accounts on the device, see and modify the owner’s contact card and add or remove contacts from the device. The permission **group CONTACTS deals with the user’s contacts while ACCOUNT_MANAGER deals with the user’s accounts.**
<uses-permission android:name="android.permission-group.CONTACTS"/>
<uses-permission android:name="android.permission.ACCOUNT_MANAGER"/>
At code level one can set permission by using **https://developer.android.com/training/permissions/requesting.html**
First check
// Assume thisActivity is the current activity
int permissionCheck = ContextCompat.checkSelfPermission(thisActivity,
Manifest.permission.group.CONTACTS);
+0
我试过这个,但获取错误为错误:(11)标记
+0
相关问题
- 1. Android开发:如何请求权限?
- 2. Android:请求多个权限时仅请求第一个权限
- 3. Android请求多权限
- 4. Facebook的请求权限和身份验证
- 5. 带有扩展权限请求的Facebook身份验证
- 6. HTTPS请求,Android中的身份验证
- 7. 如何在权限请求中添加多个权限
- 8. 请求代码在Android的权限
- 9. 请求写权限
- 10. Android Volley请求身份onErrorResponse部分
- 11. 如何在Android Marshmallow上请求JUnit测试权限
- 12. Android偏好特定权限请求
- 13. Android M请求权限非活动
- 14. Android API 23请求多个权限
- 15. 的Android程序请求的权限
- 16. 只请求一次android权限
- 17. Android上的UnityPlayer请求权限
- 18. Android - 更改READ_PHONE_STATE权限请求消息
- 19. Android M请求权限不起作用
- 20. 基于权限的授权.net身份
- 21. 可以IdentityServer返回的权利要求身份验证请求
- 22. 如何使用Facebooker2请求权限?
- 23. 如何向服务请求权限
- 24. 如何推迟[权限请求警报]?
- 25. 在应用程序中请求权限
- 26. ALDB身份验证请求
- 27. Express.js POST空请求身份
- 28. Android请求权限请求只有第一个
- 29. 身份验证服务器验证没有请求用户权限
- 30. 了解IIS6权限,ACL和身份 - 我如何限制访问?
可能重复的问题,请选中该https://stackoverflow.com/questions/33295810/where - 我的应用程序许可身份在Android的棉花糖 –