JPro
JPro

Reputation: 6546

restrict android app installation to Android phones

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

Answers (3)

Hannoun Yassir
Hannoun Yassir

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

balysv
balysv

Reputation: 176

Yes, you need to add restrictions to your manifest.

Check here and here.

Upvotes: 3

Ajinkya
Ajinkya

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

Related Questions