uses-permission-sdk-23和uses-permission之间的区别? [英] Difference Between uses-permission-sdk-23 and uses-permission?

查看:292
本文介绍了uses-permission-sdk-23和uses-permission之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚才知道android清单文件中名为" uses-permission-sdk-23 "的新标签

I just come to know newer tag in android manifest file called "uses-permission-sdk-23"

<uses-permission-sdk-23 android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.CAMERA" />

有人可以提供这两者之间的区别吗?

Can anybody please provide difference between this two?

推荐答案

(如果应用程序在SDK版本为23或更高版本的设备上运行).如果设备运行的是SDK版本22或更低版本

当您更新应用程序以包括需要额外权限的新功能时.如果用户在运行SDK版本22或更低版本的设备上更新应用程序,则系统会在安装时提示用户授予该更新中声明的所有新权限.如果一项新功能不够重要,则您可能希望在这些设备上完全禁用该功能,因此用户不必授予其他权限来更新应用程序.通过使用 uses-permission-sdk-23 元素而不是 uses-permission

when you update an app to include a new feature that requires an additional permission. If a user updates an app on a device that is running SDK version 22 or lower, the system prompts the user at install time to grant all new permissions that are declared in that update. If a new feature is minor enough, you may prefer to disable the feature altogether on those devices, so the user does not have to grant additional permissions to update the app. By using the uses-permission-sdk-23 element instead of uses-permission

仅当应用程序在支持运行时权限模型的平台上运行时才可以请求该权限,在该模型中,用户在运行时向应用程序授予权限.

有关更多信息,请参阅此内容.使用-权限sdk 23

for More info refer this.uses - Permission sdk 23

这篇关于uses-permission-sdk-23和uses-permission之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆