无法制作平板电脑专用应用

时间:2013-10-08 07:04:35

标签: android android-layout

我已经引用了堆栈溢出并在清单文件中使用了“支持屏幕”属性,如下所示:

<supports-screens android:smallScreens="false"
                      android:normalScreens="false"
                      android:largeScreens="false"
                      android:xlargeScreens="true"
                      android:requiresSmallestWidthDp="600" />

    <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="17" />

但我仍然能够在任何类型的屏幕上安装它。尝试过sony tipo,我可以安装它。这有什么不对吗?

3 个答案:

答案 0 :(得分:1)

  1. 您应该允许大屏幕,因为这适用于7“平板电脑

  2. 您无法过滤应用程序安装在手机上(通过Eclipse,或者从外部源下载)。此设置将限制应用从Google Play电话市场下载到手机上。

  3. 希望这会有所帮助:)

答案 1 :(得分:1)

据我所知,安装apk总是可行的。在Play商店中,如果要求未满足,应用程序将不会显示在任何应用列表中。

答案 2 :(得分:1)

如果我没弄错的话你也可以使用:

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

<compatible-screens>

这实际上应该通过Play商店限制设备,如警告所示:

Caution: Normally, you should not use this manifest element. 
Using this element can dramatically reduce the potential 
user base for your application, by not allowing users to 
install your application if they have a device with a screen 
configuration that you have not listed. 
You should use it only as a last resort, when the application 
absolutely does not work with specific screen configurations.

但要小心并阅读文档和警告。

另一种方法是在设备过滤器中实际仅启用平板电脑 当您发布应用时(在Google Play开发者控制台中,在网络上)。

相关问题