我正在集成一个 SDK,它需要我把这个:
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION"
android:required="false" />
我理解 android:required="false"
上的 uses-feature
,但我无法理解权限上的含义。它未在 docs 中列出作为一个属性。
它是否类似于 uses-feature
上的 requires
?其中权限暗示所列功能 here ,那么这些功能就不需要了吗?
最佳答案
如你所说,根据the documentation , 它不是 <uses-permission>
中的有效属性标签。它接着说(强调我的):
To control filtering, always explicitly declare hardware features in elements, rather than relying on Google Play to "discover" the requirements in elements. Then, if you want to disable filtering for a particular feature, you can add a
android:required="false"
attribute to the declaration.
我建议您的 SDK 文档可能有误,您应该包含一个 <uses-feature>
任何隐含特征的标记。
关于android - android :required ="false" mean WRT to uses-permission?是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19166952/