• <bdo id='J1Lzy'></bdo><ul id='J1Lzy'></ul>

      <tfoot id='J1Lzy'></tfoot>

      1. <legend id='J1Lzy'><style id='J1Lzy'><dir id='J1Lzy'><q id='J1Lzy'></q></dir></style></legend>
        <i id='J1Lzy'><tr id='J1Lzy'><dt id='J1Lzy'><q id='J1Lzy'><span id='J1Lzy'><b id='J1Lzy'><form id='J1Lzy'><ins id='J1Lzy'></ins><ul id='J1Lzy'></ul><sub id='J1Lzy'></sub></form><legend id='J1Lzy'></legend><bdo id='J1Lzy'><pre id='J1Lzy'><center id='J1Lzy'></center></pre></bdo></b><th id='J1Lzy'></th></span></q></dt></tr></i><div id='J1Lzy'><tfoot id='J1Lzy'></tfoot><dl id='J1Lzy'><fieldset id='J1Lzy'></fieldset></dl></div>
      2. <small id='J1Lzy'></small><noframes id='J1Lzy'>

        Android:禁止在平板电脑上安装应用

        Android: Disable to install app on tablets(Android:禁止在平板电脑上安装应用)
        <i id='MRHCi'><tr id='MRHCi'><dt id='MRHCi'><q id='MRHCi'><span id='MRHCi'><b id='MRHCi'><form id='MRHCi'><ins id='MRHCi'></ins><ul id='MRHCi'></ul><sub id='MRHCi'></sub></form><legend id='MRHCi'></legend><bdo id='MRHCi'><pre id='MRHCi'><center id='MRHCi'></center></pre></bdo></b><th id='MRHCi'></th></span></q></dt></tr></i><div id='MRHCi'><tfoot id='MRHCi'></tfoot><dl id='MRHCi'><fieldset id='MRHCi'></fieldset></dl></div>
            <tbody id='MRHCi'></tbody>

              <tfoot id='MRHCi'></tfoot>

              • <small id='MRHCi'></small><noframes id='MRHCi'>

                <legend id='MRHCi'><style id='MRHCi'><dir id='MRHCi'><q id='MRHCi'></q></dir></style></legend>
                • <bdo id='MRHCi'></bdo><ul id='MRHCi'></ul>
                  本文介绍了Android:禁止在平板电脑上安装应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在开发只能安装在手机而不是平板电脑上的应用.

                  I'm working on app that should be installed only on phones and not tablets.

                  我想问,如何限制只能安装在手机上?

                  I want to ask, how can I restrict to install only on phones?

                  我正在阅读这篇文章,但对我来说似乎很老:分发到特定屏幕

                  I was reading this article, but it seems pretty old to me: Distributing to Specific Screens

                  他们根本不是在谈论 xxhdpi 或 xxxhdpi 分辨率,设备是按屏幕大小划分的.几年前它可以工作,但现在呢?例如,Nexus 6 的屏幕尺寸为 6 英寸 - 它几乎可以被视为平板电脑.

                  They are not talking about xxhdpi or xxxhdpi resolutions at all and devices are divided by screen size. It could work few years ago, but now? For example Nexus 6 has 6" screen size - it can be considered almost like tablet.

                  您知道任何可行的解决方案吗?

                  Do you know any working solution?

                  推荐答案

                  如果我们使用 adb install 命令来安装应用程序,则无法将应用程序安装限制为仅在平板电脑或手机上.此外,如果我们在清单中提供标签,它仅适用于 Google Play 商店过滤器,要检查这一点,您可以尝试以下代码,将其放入清单中并尝试将其安装在 7 英寸平板电脑中,它会允许,

                  To install app if we are using adb install command , it's not possible to restict app installation only to tablets or phones. Also if we give tag in menifest it's only applicable for the Google Play store filter, to check this you can try following code, put it into your menifest and try to install it in 7 inch tablet, it will allow,

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

                  通过使用此代码,Google Play 商店仅在安装时过滤和限制,但在其他情况下不作为共享 apk 或在模拟器中安装.

                  By using this code Google play store filters and restrict while installing only, but not in other cases as sharing apk, or installing in emulator.

                  因此,当您在市场上上传 APK 时,要将应用安装限制在特定设备上,您需要这样做应用程序->选择您的应用程序->APK-> 支持的设备 |排除的设备

                  So, to restrict the app installation to certain device when you upload APK at market , you need to do this Applications->select your application->APK-> Supported devices | Excluded devices

                  这篇关于Android:禁止在平板电脑上安装应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Android - Is it possible to get install referrer programmatically(Android - 是否有可能以编程方式安装引荐来源网址)
                  How to sign an APK with more than one certificate?(如何使用多个证书签署 APK?)
                  versionCode vs versionName in Android Manifest(Android Manifest 中的 versionCode 与 versionName)
                  What does this Google Play APK publish error message mean?(这个 Google Play APK 发布错误消息是什么意思?)
                  Lost my keystore for uploaded app on android market(丢失了我在 android 市场上上传的应用程序的密钥库)
                  App on Google Play always shows quot;Updatequot; instead of open(Google Play 上的应用程序总是显示“更新;而不是打开)

                  <small id='Ztfxl'></small><noframes id='Ztfxl'>

                  • <i id='Ztfxl'><tr id='Ztfxl'><dt id='Ztfxl'><q id='Ztfxl'><span id='Ztfxl'><b id='Ztfxl'><form id='Ztfxl'><ins id='Ztfxl'></ins><ul id='Ztfxl'></ul><sub id='Ztfxl'></sub></form><legend id='Ztfxl'></legend><bdo id='Ztfxl'><pre id='Ztfxl'><center id='Ztfxl'></center></pre></bdo></b><th id='Ztfxl'></th></span></q></dt></tr></i><div id='Ztfxl'><tfoot id='Ztfxl'></tfoot><dl id='Ztfxl'><fieldset id='Ztfxl'></fieldset></dl></div>

                  • <legend id='Ztfxl'><style id='Ztfxl'><dir id='Ztfxl'><q id='Ztfxl'></q></dir></style></legend>

                    <tfoot id='Ztfxl'></tfoot>
                      <tbody id='Ztfxl'></tbody>

                          <bdo id='Ztfxl'></bdo><ul id='Ztfxl'></ul>