Reputation: 6546
Is there any way to to restrict an Android app installation to phones only? either via code/play store? I don't want my app to be installed on tablets
Upvotes: 1
Views: 528
Reputation: 21182
I don't know any elegant way to do it. but this might help you out. basically it eliminates big screens.
<manifest>
....
<supports-screens android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="false"
android:anyDensity="true"
android:compatibleWidthLimitDp="integer"
android:largestWidthLimitDp="integer"/>
<application>
......
</application>
<manifest>
Upvotes: 1
Reputation: 22710
...To do so, you can enable filtering by external services such as Google Play by adding elements to your manifest file that specify the screen configurations your application supports.
Source : http://developer.android.com/guide/practices/screens-distribution.html#FilteringHansetApps.
Upvotes: 0