简体   繁体   中英

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. Here's what my XML looks like:

<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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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