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.
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.