Android市场过滤掉平板电脑

发布于 2024-12-29 18:44:40 字数 660 浏览 4 评论 0原文

我在互联网上搜索了这个答案,我觉得我一直在接近它,但事实证明它并不完全是我想要的。如果有人发布一个快速链接来准确说明我需要什么,我会对自己感到非常失望...

我正在制作一个 Android 应用程序,其最小 api 是 4,android 版本是 1.6。它可以在平板电脑上运行,但尚未优化,因此当我发布它时,我根本不希望平板电脑能够找到它。我已阅读有关将此代码添加到我的清单的支持屏幕 android 页面:

<supports-screens 
     android:smallScreens="true"
     android:normalScreens="true"
     android:largeScreens="true"
     android:xLargeScreens="false"
                  />

android 1.6 不支持该特定代码 ( android:xLargeScreens="false"),因此我无法将其添加到我的清单中。每个屏幕的定义也相当模糊......例如,大屏幕尺寸被定义为“比“正常”手机屏幕大得多的屏幕”。这是否意味着大屏幕也是平板电脑?我需要将其设置为 false 吗?

因此,既然这不是一个选项,并且知道我的规格...我如何在 Android 市场中过滤我的应用程序,以便它不会出现在平板电脑上?

I have scoured the internet for this answer, and I feel like I keep getting close to it but then it turns out to not be quite what I want. If someone posts a quick link that specifies exactly what I need I will be quite disappointed in myself...

I am making an Android app whose minimum api is 4 and android version is 1.6. It works on tablets, but it is not optimized quite yet, so when I publish it I do not want tablets to be able to find it at all. I have read the support screens android pages about adding this code to my manifest:

<supports-screens 
     android:smallScreens="true"
     android:normalScreens="true"
     android:largeScreens="true"
     android:xLargeScreens="false"
                  />

That particular code ( android:xLargeScreens="false") is not supported with android 1.6, so I cannot add that to my manifest. The definition of each screen is pretty vague as well... for instance, the large screen size is defined as "a screen that is significantly larger than a "normal" handset screen". Does that mean the largeScreens are tablets as well? Do I need to set that to false??

So since that is not an option, and knowing my specs... how do I filter my app in the android market so that it does not show up for tablets?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爱的十字路口 2025-01-05 18:44:40
  1. AFAIK,不可能关闭 xlargescreen 的可能性 - 您已经正确设置了问题。
  2. 不要害怕所有平板电脑 - 有很多更便宜的平板电脑,其屏幕比现代手机的屏幕小。
  3. 也不要害怕更大的平板电脑。他们的所有者习惯于 APK 9 版本之前的软件未针对他们的设备进行优化。不可能。

编辑:
引用 Android 开发人员指南

警告:如果您使用 元素进行相反操作
场景(当您的应用程序不兼容更大的屏幕时)
并将较大的屏幕尺寸属性设置为“false”,然后外部
Android Market 等服务不应用过滤。你的
应用程序仍然可以在更大的屏幕上使用,但是当它
运行时,它不会调整大小以适应屏幕。相反,系统将
模拟手机屏幕尺寸(大约 320dp x 480dp;请参阅 屏幕
兼容模式
了解更多信息)。如果你想阻止你的
应用程序从更大的屏幕上下载,使用
<兼容屏幕>,如上一节中讨论的
声明应用仅适用于手机

  1. AFAIK, it is impossible to close that xlargescreen possibility - you have set the problem correctly.
  2. Don't be afraid of all tablets - there are very many cheaper ones that have screen smaller than that of modern phones.
  3. Don't be afraid of greater tablets, too. Their owners are accustomed that SW for elder than APK 9 versions are not optimized for their devices. It couldn't be.

Edit:
cite from the android developer guide:

Caution: If you use the <supports-screens> element for the reverse
scenario (when your application is not compatible with larger screens)
and set the larger screen size attributes to "false", then external
services such as Android Market do not apply filtering. Your
application will still be available to larger screens, but when it
runs, it will not resize to fit the screen. Instead, the system will
emulate a handset screen size (about 320dp x 480dp; see Screen
Compatibility Mode
for more information). If you want to prevent your
application from being downloaded on larger screens, use
<compatible-screens>, as discussed in the previous section about
Declaring an App is Only for Handsets.

溺深海 2025-01-05 18:44:40

我认为你所要做的就是取消对大屏幕的屏幕支持。

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

这样市场就会知道您的应用程序仅在某些屏幕上兼容。

I think all you have to do is remove the screen support for big screens.

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

So that the market would know your app is only compatible on certain screens.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文