Android manifest config for smartphone only, Sony

2019-04-19 15:56发布

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

2条回答
姐就是有狂的资本
2楼-- · 2019-04-19 16:26

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

查看更多
Emotional °昔
3楼-- · 2019-04-19 16:27

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

<screen android:screenSize="large" android:screenDensity="480" />
查看更多
登录 后发表回答