Manifest Screen Support Device-only and tablet-only login

What should be the manifestation of an Android application that only supports a device, not a tablet. The size of the device may be different, but the maximum should be 7 inches.

I developed an application for different devices for tablet and tablet. Now I want to run as an assembly on the market, but after the manifest recording also supports a 10 inch tablet.

<uses-sdk
    android:minSdkVersion="6"
    android:targetSdkVersion="8" />


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

I want to limit the download of this assembly to a 10-inch tablet, and a tablet with 10-inch tablets should not load on a tablet other than 10 inches.

Please offer me the perfect manifest for this.

+5
source share
3

SDK 10- .

10 , .

, , , . . , apk , apk .

google, /:

"Warning: Multiple active APKs support some of the same devices. If a device is supported by more than one APK, it will receive the one with the higher version."

:

:

<uses-sdk
android:minSdkVersion="6"
android:targetSdkVersion="8" />


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

:

<uses-sdk
android:minSdkVersion="6"
android:targetSdkVersion="8" />


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

android:largestWidthLimitDp="enter mobile pixel value which above you want restrict."

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

take a look at http://developer.android.com/guide/topics/manifest/supports-screens-element.html

Code to disable extra large screens

<supports-screens
 android:xlargeScreens="false"
 />

From what I see, it still allows you to run the application on a tablet device from Eclipse, but it should disable it at the time of publication.

0
source

All Articles