Android的权限,需要= QUOT;假QUOT ;,失败 [英] Android Permission, required="false", fail

查看:119
本文介绍了Android的权限,需要= QUOT;假QUOT ;,失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序可为用户提供的可选的访问短信和电话。我用:

My application provides the user with optional access to SMS and Phone calls. I have used:

 <uses-permission android:name="android.permission.READ_PHONE_STATE" android:required="false"></uses-permission>
 <uses-permission android:name="android.permission.SEND_SMS" android:required="false"></uses-permission>
 <uses-permission android:name="android.permission.CALL_PHONE" android:required="false"></uses-permission>

谷歌Play不会将该应用程序发布到现在没有手机网络接入设备。这似乎是必需= false参数未能完成其工作。

Google Play does not expose this application to devices that do not have cellular network access. It seems like the required = false parameter is failing to do its job.

这是一个错误吗?有没有别的,我可以做什么?

Is this a bug? Is there something else that I can do?

推荐答案

你为什么把权限内所需的参数?
Android的:在声明功能所需参数时,据我所知...
例如:

Why are you putting the required parameter inside a permission? The android:required param is used when you declare a feature, afaik... For example:

<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true" />

我觉得你想要做的就是添加使用特征申报与什么机器人:要求=假

使用此表来更新您的清单:
<一href=\"http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions-features\">http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions-features

Use this table to update your manifest: http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions-features

<uses-feature android:name="android.hardware.telephony" android:required="false" />

这篇关于Android的权限,需要= QUOT;假QUOT ;,失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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