限制销售的应用程序的特定设备? [英] Restrict sales of an app by specific devices?

查看:133
本文介绍了限制销售的应用程序的特定设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能限制销售特定设备在Android Market上的应用程序,或通过设备的功能(屏幕分辨率,处理器,磁盘空间等)?

Is it possible to restrict sales of an app on the Android Market by specific devices, or by features of a device (screen resolution, processor, diskspace etc..)?

我知道我要的人说,如果你设计你的应用程序以及,它应该能够在任何大小的设备上运行轰炸。这一切都很好,很好,但也有原因,可能仍然需要通过功能设置限制。

I know that I'm going to be bombarded by people saying that if you design your app well, it should be able to run on any size device. That's all fine and well, but there are reasons that you might still want to restrict by feature set.

这是最现成的原因之一是屏幕分辨率。显然,并不是所有的应用程序在所有的屏幕尺寸工作,特别是如果你有很多已经制作采取更大的屏幕,分辨率为充分利用图像。要痛打这一点,想象一下,明天一个新的Andr​​oid设备出来以100×100的屏幕分辨率。显然,此设备将无法正常工作最佳的应用程序。作为开发人员,我想确保我的应用程序只能在具有我需要支持最佳的体验功能的设备上运行。

One reason that comes readily to mind is screen resolution. Clearly, not all apps work on all screen sizes, especially if you have a lot of images that have been crafted to take full advantage of a larger screen resolution. To belabor the point, imagine that tomorrow a new Android device comes out with a screen resolution of 100x100. Clearly there are apps that will not work optimally on this device. As a developer, I want to ensure that my application runs only on devices that have the features I require to support the best possible experience.

我不想把它与某些设备出售给用户的 prevent负面的评级和评论,我对其他应用程序经常看到的。我宁愿船舶上的设备数量较少的一个完美的体验不是让不完美的经历对所有的人。

I don't want to sell it to users with certain devices to prevent negative ratings and reviews that I frequently see on other apps. I'd rather ship a perfect experience on a smaller number of devices than allow imperfect experiences on all of them.

难道Android电子市场提供的任何方式处理这个问题?

Does Android Market offer any means of dealing with this?

推荐答案

我觉得你可以做什么,你需要在你AndroidManifest文件。例如,您可以选择只支持这样的超大屏幕分辨率:

I think you can do what you need in your AndroidManifest file. For example, you can choose to only support extra large screens resolution like this:

<supports-screens android:resizeable="false"
                  android:smallScreens="false" 
                  android:normalScreens="false"
                  android:largeScreens="false"
                  android:xlargeScreens="true"
                  android:anyDensity="true" />

这些尺寸在下面的链接定义,例如正常是HVGA中等密度。阅读下面的链接查看更多细节。

These sizes are defined in the link below, for example "normal" is HVGA at medium density. Read the link below for more details.

http://developer.android.com/guide/topics/manifest/supports-screens-element.html

如果你的应用程序不支持小屏幕,则没有太多的系统可以做,使应用程序的工作以及在较小的屏幕,所以外部服务(如Android Market)的不应该允许用户安装应用程序在这样的屏幕。

"If your application does not support small screens, then there isn't much the system can do to make the application work well on a smaller screen, so external services (such as Android Market) should not allow users to install the application on such screens."

您可能还需要设置的元素,虽然我还没有尝试过自己,这似乎是在网上与你想要的:

You may also need to set the element, although I've not tried that myself, it seems to be in-line with what you want:

http://developer.android.com/guide/topics/manifest/compatible-screens-element.html

Android系统不会读取manifest元素(既不在安装时也没有在运行时)。这个元素只是提供信息,也可以使用由外部服务(如Android市场),以更好地了解特定应用程序的兼容性屏幕配置并启用过滤功能的用户。未在此元素声明的任何屏幕配置的屏幕与该应用程序不兼容,因此,外部服务(如Android Market)的不应该提供的应用程序使用这种屏幕的设备。

"The Android system does not read the manifest element (neither at install-time nor at runtime). This element is informational only and may be used by external services (such as Android Market) to better understand the application's compatibility with specific screen configurations and enable filtering for users. Any screen configuration that is not declared in this element is a screen with which the application is not compatible. Thus, external services (such as Android Market) should not provide the application to devices with such screens."

您需要阅读更多的在这里也看到做这一切的信息是什么市场:

You'll want to read up more here as well to see what the Market does with all this info:

http://developer.android.com/guide/appendix/market- filters.html

由于我还没有试过,这我不清楚你的应用程序是否应同时使用我上面提到的因素,但市场过滤网页或许可以解释其使用。

Since I've not tried this, it's not clear to me whether your app should use both the elements I mentioned above, but the market filter page probably explains which to use.

这篇关于限制销售的应用程序的特定设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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