Android市场过滤掉平板电脑
我在互联网上搜索了这个答案,我觉得我一直在接近它,但事实证明它并不完全是我想要的。如果有人发布一个快速链接来准确说明我需要什么,我会对自己感到非常失望...
我正在制作一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
编辑:
引用 Android 开发人员指南:
Edit:
cite from the android developer guide:
我认为你所要做的就是取消对大屏幕的屏幕支持。
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.