如何禁用从AndroidManifest.xml中Android平板电脑屏幕应用程序的支持? [英] How to disable app support for Android tablet screen from AndroidManifest.xml?
问题描述
我将AP preciate任何帮助,在这里 - 我想让我的Android应用程序是安装的仅在手机上,因为它完全不能在平板电脑上运行。我该怎么做?
I'll appreciate any help here - I want to make my Android app be installable only on phones as it totally cannot function on tablets. How can I do that?
目前,我在AndroidManifest.xml中有这些
At the moment, I have these in my AndroidManifest.xml
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="false"
android:xlargeScreens="false"
/>
。
。
. . .
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="10"/>
当我上传的应用,市场说,该应用程序支持的API版本3到15岁以上,它仍然可以在我的摩托罗拉Xoom平板电脑中。我也改变了项目建设目标为10。
When I upload the application, Market says that the app supports API versions 3 through 15+ and it can still be found on my Motorola xoom tablet. I have also changed the project build target to 10.
推荐答案
请尝试使用
android:maxSdkVersion=10
注意:如果你不想工作,上述API级别10.任何版本包括常规手机也像Galaxy Nexus的是即将到来。请查看更多细节
那么,如果你要筛选基于屏幕'支持屏幕上会不是要去工作。这里是原因
Well if you want to filter based on screens 'supports-screen' won't gonna work. Here is the reason
这篇关于如何禁用从AndroidManifest.xml中Android平板电脑屏幕应用程序的支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!