我对Android M的运行时权限模型有疑问。我的应用需要位置,外部存储权限。 应该根据需要从用户请求上面的权限,即,在代码之前需要这些权限。
现在,安装应用程序时,我得到一个屏幕,说应用程序不需要任何特殊访问。是正确的行为吗?
我对Android M的运行时权限模型有疑问。我的应用需要位置,外部存储权限。 应该根据需要从用户请求上面的权限,即,在代码之前需要这些权限。
现在,安装应用程序时,我得到一个屏幕,说应用程序不需要任何特殊访问。是正确的行为吗?
I have doubt with Runtime Permission Model on Android M . My app requires Location ,External Storage permission . Above permissions are supposed to be requested from user as required i.e. just before the code which required these permissions.
Now , when app is installed I get a screen which say App doesn't require any special access . Is it the correct behavior ?
您的应用程序要求可能会损害/效果用户的权限,但也不意味着如果他/她没有允许许可,并且如果您正确代码,则不意味着您的用户将无法执行您的应用程序。也是为什么在安装应用程序时未列出它的原因,您将需要明确处理该填充。
http://developer.android.com/training/permissions/index.html Your app is asking for permission which may hurt/effect user, but also it does not mean that your user will not be able to execute your app if he/she does not does'nt allow permission and also if you code properly.and it is also the reason thats why it is not listed while installing app, you will need explicitly handle that stuffs.
© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有