应用程序不适用于对谷歌播放的Nexus 7 [英] App not available for Nexus 7 on Google Play

查看:164
本文介绍了应用程序不适用于对谷歌播放的Nexus 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道在Nexus 7,所以我改变了我的表现作出许可,不得要求如下相机可用性:

I am aware of the camera availability on Nexus 7 so I changed my manifest making the permission not required as follow:

<uses-permission android:name="android.permission.CAMERA" android:required="false"/>

该应用程序还没有上市。在这一点上我很困惑从中谈商务部采用特征,而不是用户权限

请注意,您声明哪些系统功能(或暗示)的   运行应用程序所需要或Play商店不会让你   应用程序提供给的Nexus 7的用户。始终申报硬件   功能,是不是你的应用程序至关重要,因为需要=假,则   在运行时检测,如果该功能是present,并逐步提高   功能

Be aware of which system features that you declare (or imply) are required to run your application or the Play Store will not make your application available to Nexus 7 users. Always declare hardware features that aren't critical to your app as required="false" then detect at runtime if the feature is present and progressively enhance functionality

这是怎么回事吗?我感到困惑的功能和权限之间的区别。

What's the deal here? I am confused about the difference between features and permissions.

推荐答案

使用特征声明你的应用程序使用哪种类型的硬件/软件的可用性。你可以用它来自动缩小哪些类型将出现设备。你可以声明任何功能为可选,如果应用程序能够没有他们仍然发挥作用,并且被设计用来处理情况,其中的功能不可用(如与Nexus 7,你提到的)。

uses-feature declares what types of hardware/software availability your app uses. You can use this to automatically narrow down what types of devices it will appear to. You can declare any of these features as optional, if the app is able to still function without them, and is designed to handle situations in which the feature is unavailable (such as with the Nexus 7 as you mentioned).

使用-许可声明的程序是什么类型的函数的允许的使用。如果声明的许可,因为你所做的,它可以让用户知道嘿,这个程序被允许使用我的相机,他们可以决定是否批准这一用法。你不能标记权限为可选。

uses-permission declares what types of functions your app is allowed to use. If you declare the permission, as you've done, it lets the user know "Hey, this app is allowed to use my camera" and they can decide whether or not to approve that usage. You cannot mark a permission as optional.

您应该将离开要求属性关闭的使用-许可标签,并添加了一个标签为相机使用特征,并在该标签,将其标记为需要=假。例如:

You should instead leave the required attribute off of the uses-permission tag, and add another tag for the camera with uses-feature, and in that tag, mark it as required="false". For example:

<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>

编辑:阅读这个文件,看来你也可能需要添加:

Reading this document, it appears you may also have to add:

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

由于照相机许可意味着这两个特征的要求。它可以工作,没有这额外的标签,但它可能不会伤害过分具体,以防万一。

since the camera permission implies the requirement of these two features. It may work without this extra tag, but it probably wouldn't hurt to be over-specific, just in case.

这篇关于应用程序不适用于对谷歌播放的Nexus 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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