【问题标题】:Couldn't make a Tablet only app无法制作仅限平板电脑的应用
【发布时间】:2013-10-08 07:04:35
【问题描述】:

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

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

【问题讨论】:

标签: android android-layout


【解决方案1】:
  1. 您应该允许使用大屏幕,因为这适用于 7 英寸平板电脑

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

希望这会有所帮助:)

【讨论】:

    【解决方案2】:

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

    【讨论】:

      【解决方案3】:

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

      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 开发者控制台中,在网络上)。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-08-23
        • 1970-01-01
        • 1970-01-01
        • 2013-01-21
        • 1970-01-01
        相关资源
        最近更新 更多