避免应用程序在android系统安装在平板电脑 [英] avoid app installing on tablet in android
问题描述
有人告诉我打造的Android 2.2的应用程序,这将不支持平板电脑。
I am told to build an app in android 2.2 which will not support tablets.
我通过大量的谷歌搜索去却发现无解
我还发现此链接但是这给如何从2.3做同样的起
I went through lots of googling but found no solution I also found this link but this give how to do the same from 2.3 onwards
我的问题是,我不能切换到2.3为我的客户想要从2.2支持的应用程序
My problem is that I cant switch to 2.3 as my client want to support the app from 2.2
这里是code,我用我的清单
here is the code I am using in my manifest
<supports-screens android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"/>
以上code不避免该应用从平板电脑下载...等它崩溃...
the code above dont avoid the app to download from tablet... and so it crashes...
请帮我坚持
推荐答案
一个有点意外的答案,我想,但你想完全忽略屏幕尺寸,只是要求 PHONE
在清单功能?这是相当罕见的平板电脑拥有者,让你有效的'时间过滤掉。例如,你可能在你的AndroidManifest.xml中写:
A little bit unexpected answer, I think, but have your tried to ignore screen sizes completely and just request PHONE
features in the manifest? It's quite rare for a tablet to have those, so you effectively filter 'em out. For example, your may write in your AndroidManifest.xml:
<uses-permission android:name="android.permission.CALL_PHONE" />
这篇关于避免应用程序在android系统安装在平板电脑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!