简体   繁体   English

Android应用程序设置为仅可在平板电脑上部署,但是为什么我仍然可以在手机上安装它?

[英]Android application is set to be deployed on tablets only, but why am I still able to install it on my phone?

My application is set to work on 7" and 10" android tablets only. 我的应用程序设置为仅在7英寸和10英寸android平板电脑上运行。 Here's what my XML looks like: 我的XML如下所示:

<manifest>
            <supports-screens android:anyDensity="false"
                      android:smallScreens="false"
                      android:normalScreens="false"
                      android:largeScreens="true"
                      android:xlargeScreens="true"/>
            <application android:theme="@style/Theme.AppCompat.Light"/>
            <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/>
</manifest>

Now the app works just fine, I have no problems. 现在该应用程序运行正常,我没有问题。 I don't want the application to run on phones, but I am still able to install the app on to my phone(nexus 5) from the IDE (I am using Titanium), and it runs fine on my phone as well. 我不希望该应用程序在手机上运行,​​但是我仍然能够从IDE(我使用Titanium)将其安装到我的手机(nexus 5)上,并且在我的手机上也可以正常运行。

What can I do to make it impossible for the app to be installed on phones? 我该怎么做才能使该应用程序无法安装在手机上?

So I figured it out. 所以我想通了。

If you install/run the app on any physical device, it will install and run on that said device regardless of any conditions. 如果您在任何物理设备上安装/运行该应用程序,则无论任何条件,它都将在该设备上安装并运行。 However, after uploading it to the google play store, the device would have to meet the conditions if you wanted to install it via google play store. 但是,将其上传到Google Play商店后,如果您想通过Google Play商店进行安装,则该设备必须符合条件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM