Shashank Degloorkar
Shashank Degloorkar

Reputation: 3231

Android application which should get installed only on phone and not on tablets

I've built an app but due to layout issues in tablets i decided not to make the application available to them. I've put in manifest as.

<uses-sdk 
    android:minSdkVersion="7" 
    android:targetSdkVersion="11"        
    android:maxSdkVersion="12"/>

    <supports-screens android:resizeable="false"
            android:smallScreens="true" android:normalScreens="true"
            android:largeScreens="false" android:anyDensity="false" />

but still application can be installed on tablets..

Upvotes: 5

Views: 4108

Answers (3)

Ankit Sharma
Ankit Sharma

Reputation: 1251

I have meet the same problem, don't require any tag. just use it, it will work like charm.

<screen android:screenSize="small" android:screenDensity="ldpi" />
<screen android:screenSize="small" android:screenDensity="mdpi" />
<screen android:screenSize="small" android:screenDensity="hdpi" />
<screen android:screenSize="small" android:screenDensity="xhdpi" />

<screen android:screenSize="normal" android:screenDensity="ldpi" />
<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />

Upvotes: 2

Kanika
Kanika

Reputation: 10708

Set your maxSdkVersion="10" and target also as "10"

Upvotes: -2

Hanry
Hanry

Reputation: 5531

I think you can use compatible-screens as described here for specific installations...

More Here

Upvotes: 7

Related Questions