3
我的项目支持手机和10英寸平板电脑的单个apk。然而,手机和平板电脑的用户界面非常不同。我将在下周发布应用程序,并且我希望该应用程序暂时可供电话用户使用。由于测试未完成,平板电脑版本将暂停。 将下面的声明清单中阻止应用程序安装/可见的10英寸平板电脑防止应用程序在Android平板电脑上运行
<manifest ... >
<supports-screens android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="false"/>
...
<application ... >
...
</application>
</manifest>
这个问题的解决应该是:这将筛选出10英寸(超大)平板电脑的应用程序?
<manifest ... >
<compatible-screens>
<!-- all small size screens -->
<screen android:screenSize="small" android:screenDensity="ldpi" />
<screen android:screenSize="small" android:screenDensity="mdpi" />
<screen android:screenSize="small" android:screenDensity="hdpi" />
<screen android:screenSize="small" android:screenDensity="xhdpi" />
<!-- all normal size screens -->
<screen android:screenSize="normal" android:screenDensity="ldpi" />
<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
<!-- all large size screens -->
<screen android:screenSize="large" android:screenDensity="ldpi" />
<screen android:screenSize="large" android:screenDensity="mdpi" />
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="large" android:screenDensity="xhdpi" />
</compatible-screens>
...
<application ... >
...
<application>
赞成,.// .. @CommonsWare,我想我的应用程序与平板电脑不兼容?我怎样才能防止使用? –
2012-12-26 19:35:46
@AbdulWahab:这在问题的编辑中已涵盖。 – CommonsWare 2012-12-26 19:38:02
行动,小姐完全读取这个问题, 我认为,下面是最聪明的代码,我是对吗? compatible-screens> –
2012-12-26 19:44:12