简体   繁体   中英

How do I restrict my Android app to non-tablets?

I have seen this link which show how I can restrict download to only tablets, but I am looking the other way round.

How can I restrict my app to only download on mobiles and not on tablets? (It's the requirement from the client.)

在清单中添加<compatible-screens>元素 ,概述您支持的特定屏幕大小和密度。

Another possible solution you could use is to add the following to manifest:

    <uses-feature
    android:name="android.hardware.telephony"
    android:required="true" />

This will restrict the apk to being installed on devices that the ability to make phone calls(ie non-tablets).

CommonsWare's Answer is 100% correct.

You have other options also, Use

supports-screens

Or Manually filter the tablet devices in Google Play. This will be tedious task.

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