在整合Android的棉花糖新的权限 [英] Integrate new permission in android marshmallow

查看:187
本文介绍了在整合Android的棉花糖新的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家都知道的一些变化已经在API级别23(Android的棉花糖),其中我们不得不要求在运行时也就是在危险的程度就像照相机一些权限作了,读/写外部存储等是否有任何办法从AndroidManifest文件中获得细化的权限?

As we all know some changes have been made in api level 23(Android Marshmallow) in which we have to request for some permissions at run time that is on dangerous level like camera,read/write external storage etc. Is there any way to get Granular permissions from AndroidManifest file?

推荐答案

Android的棉花糖介绍了应用程序的权限一个全新的旋转,用户现在有权撤销运行的权限时,他们的愿望的能力。这意味着,你不能假定应用程序访问权限,即使它已被授予previously。您可以参考这个 LIB 或本<一个href=\"https://medium.com/ribot-labs/exploring-the-new-android-permissions-model-ba1d5d6c0610#.1jpsx34a6\"相对=nofollow>指南。我希望这会帮助你。

Android Marshmallow introduces an entirely new spin on application permissions,Users now have the ability to revoke runtime permissions whenever they desire. This means that you can’t assume the app has access to the permission, even if it had been granted previously. You can refer this lib or this guide.I Hope this will help you out.

这篇关于在整合Android的棉花糖新的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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