1

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

<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中尝试过,我可以安装它。这里有什么问题?

4

3 回答 3

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

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

希望这可以帮助 :)

于 2013-10-08T07:08:18.923 回答
1

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

于 2013-10-08T07:09:28.077 回答
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 开发者控制台中,在网络上)实际仅在设备过滤器中启用平板电脑。

于 2013-10-08T07:19:41.137 回答