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.

share|improve this question
it wont restrict your app from running but from showing the app in google play for such devices – droidhot 10 mins ago
keep your layout files in layout-swxxxdp or in layout-hxdpi etc.. – Charan Pai 9 mins ago

2 Answers

Support Screen will effect after you will upload your apk file to Google playstore, untill you will not get this feature affected.

Also see the Filters on Google Play document for more information.

share

Why do you want it to only run on non-tablets? Is there a feature (like SMS) you need? If so, add a uses-feature tag in your manifest. If its based on screen size, why not just scale up and get more users?

Also, screen size means nothing for phone vs tablet. My phone is a Note 2, it has more pixels than original generation tablets. You could disable all the devices you don't want on the play store, but it would be a pain.

share
Yes i am having the sms functionality. And also it is the requirement of app not to run on Tab. Thank you for your valuable suggestion. – Manoj Fegde 4 mins ago

Your Answer

 
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.