Skip to content Skip to sidebar Skip to footer

How To Prevent App Installing On Tablet In Android?

I am told to build an app in Android 2.2 which will not support tablets. I went through lots of googling but found no solution. I also found this link but this give how to do the s

Solution 1:

The code in that link will work fine. Set your sdkTarget to 2.3 and your minSDK as 2.2.

Solution 2:

A little bit unexpected answer, I think, but have your tried to ignore screen sizes completely and just request PHONE features in the manifest? It's quite rare for a tablet to have those, so you effectively filter 'em out. For example, your may write in your AndroidManifest.xml:

<uses-permissionandroid:name="android.permission.CALL_PHONE" />

Solution 3:

try below code

<supports-screensandroid:smallScreens="true"android:normalScreens="true"android:largeScreens="false"android:xlargeScreens="false"android:anyDensity="false" />

Post a Comment for "How To Prevent App Installing On Tablet In Android?"