Android "Screen Support" not working?

I created one application and I am trying to exclude devices using a small screen. For this, I used the Support Screen Element in the manifest.

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

As the link to the developer page says: For example, a regular handset screen has the smallest width of 320dp.

Some time ago, I noticed that people with small devices still give bad reviews, because they can still download the application, and some layout elements do not appear on the screen. Of course, one of the solutions would be to adapt the layout, but please, at the moment, my question is different.

The attribute android:requiresSmallestWidthDpdoes not seem to work. In fact, I tried to set it at 700 or higher, just to conduct an experiment and upload it to the storage, the number of supported devices does not change!

I also change the minor version of the SDK to 13 to prevent a compatibility issue with this attribute:

<uses-sdk
    android:minSdkVersion="13"
    android:targetSdkVersion="19" />

Other attributes work well, for example, if I delete normal screens, the number of supported devices drops.

I would like to remove devices with dpi resolution below 320, but I can not. And I can’t understand what I’m doing wrong.

Update

This suggestion: Google Play does not currently support this attribute for filtering (on Android 3.2), so you should continue to use other size attributes if your application does not support small screens. But:

  • , Android 3.2+. Android 13+ android:requiresSmallestWidthDp, , ?
  • : android:compatibleWidthLimitDp android:largestWidthLimitDp. " " , .

, : , 500 360 ? ?

+4
1

. Android , . , Google Play. Google Play ( Android 3.2), , .

Update:

, android:requiresSmallestWidthDp Google Play. android:smallScreens, android:normalScreens, android:largeScreens android:xlargeScreens.

:


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

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

enter image description here

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

<supports-screens
    android:smallScreens="true"
    android:normalScreens="true"
    android:largeScreens="true"
    android:xlargeScreens="true"
    android:requiresSmallestWidthDp="360"/>

enter image description here

65


< >

:

, . , . , .

Android ( , ). ( Google Play), . , ​​ , . , (, Google Play) .

: . , , , . , . , .

+6

Source: https://habr.com/ru/post/1569187/


All Articles