问题
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.)
回答1:
Add a <compatible-screens> element to your manifest, outlining the specific screen sizes and densities that you support.
回答2:
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(i.e. non-tablets).
回答3:
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.
来源:https://stackoverflow.com/questions/10142755/how-do-i-restrict-my-android-app-to-non-tablets