Android manifest config for smartphone only, Sony

2019-04-19 16:01发布

问题:

I've an android app on the google play, which is only compatible for smartphone (i'm working on the tablet adaptation).

I've set up this configuration in my AndroidManifest.xml to exclude the tablets: (i exclude x-large)

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

It works fine, but now the new smartphones Sony Xperia Z, HTC One and Samsung Galaxy S4 are not compatible. And if i try my app the display is just fine on these devices

I can't find if theses models are considered as "x-large" screen.

Anyone facing this problem?

Thanks

Thibault

回答1:

Adding the following line will enable support for large phones with xxhdpi displays:

<screen android:screenSize="large" android:screenDensity="480" />


回答2:

Some smart phones have very large screens as well. Try android:xlargeScreens="true" as well.