0

Guided by Multiple APK Support manual I'm trying to publish three different apks for different screen sizes. I've created following filters:
For small screens:

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

For normal and large screens:

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

For xlarge screens:

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

In rest all three manifests looks the same. I've uploaded this apks to google play and filters seems to be correct.

The problem: When I install my application to different devices it allways installs version for normal and large screens, I've tested even on Galaxy S4 and HTC One with full hd screens.

I've only one warning in play console: Some devices are eligible to run multiple APKs. In such a scenario, the device will receive the APK with the higher version code.
This is how my play console looks like: enter image description here


Does anybody has any ideas what is wrong with my configuration? Thanks in advance.

4

1 回答 1

0

由于我还不能发表评论,我必须使用 Answer-function。

我猜“大、小和 xlarge”是指 dp 值。但密度无关像素(dp)背后的理念是为拥有 480*800 和全高清(1920*1080)分辨率的 4 英寸手机的用户带来相同的体验。因此,也许您应该在 8 英寸或 10 英寸平板电脑上测试您的应用程序,看看会得到什么,因为每部 4 英寸手机都应该具有相同的 dp 宽度,但即使具有相同分辨率的 10 英寸平板电脑也不应该。

这对您来说可能很有趣,可以阅读有关 android 中与密度无关的像素的信息

希望我能帮助你

于 2013-09-08T08:51:29.907 回答