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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With