https://developer.android.com/training/basics/intents/filters.html

本文详细解释了应用程序如何正确处理权限请求,特别是针对直接操作与间接请求之间的区别。举例说明了读取通讯录时不同情景下权限分配的原则。

criteria n. 标准,条件(criterion的复数)
Your app only needs permissions for actions that it performs directly. Your app does not need permission if it is requesting that another app perform the task or provide the information. For example, if your app needs to read the user’s address book, the app needs the READ_CONTACTS permission. But if your app uses an intent to request information from the user’s Contacts app, your app does not need any permissions, but the Contacts app does need to have that permission.
如果你的app需要读取通讯录,那么它需要READ_CONTACTS权限,但是如果你的app需要从一个通讯录类型的app获取一些信息,那么你的app不需要申请任何权限,但是这个通讯录app需要该权限。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值