Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android : Restrict app not to run on Tablet

I developed an application. And now i want that my application should run only on mobiles not on tablets. I searched for that and tried as:

<supports-screens 
    android:smallScreens="true"
    android:normalScreens="false" 
    android:largeScreens="false"
    android:xlargeScreens="false"
    android:resizeable="false" />

I write this in androidmenifest.xml file. But it is of no use. My application is running on tablet now also.

Am i declared is wrong, or i should include anything else.

Please suggest what should i do to restrict my application from running on tablet.

like image 327
Manoj Fegde Avatar asked Mar 21 '13 06:03

Manoj Fegde


People also ask

How do I block an app on my tablet?

To choose the apps you wish to block, tap the Blocklists icon on the bottom of the screen and then tap "Manage" next to Blocked Applications. After tapping "Manage", you'll see a list of your device's apps divided by category. On this screen, you can select the apps you wish to block during Freedom sessions.

How do I exclude a device from console?

Exclude a deviceOpen Play Console and go to the Device catalog page (Release > Reach and devices > Device catalog). Select the device model which you wish to exclude and go to the details page. At the top right of your screen, select Exclude device.


1 Answers

I think the best way to do this is use:

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

This way you assure the device doesn't have phone support, what is the case on all the tablets I know.

like image 104
Raymond P Avatar answered Sep 28 '22 08:09

Raymond P