An Android application that should only be installed on the phone, not on tablets

I created the application, but due to problems with the layouts in the tablets, I decided not to make the application accessible to them. I added a manifest like.

<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 the application can be installed on tablets.

+5
source share
3 answers

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

More here

+7
source

I am facing the same problem, do not require any tags. just use it, it will work like a 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" />

+2
source

maxSdkVersion="10" "10"

-2

All Articles