What is the right screen size and density configuration of Nexus 6?

为君一笑 提交于 2019-12-05 03:22:43

I asked Google Play support and got an answer which helped me solve the issue.

Still not 100% sure about the right screen configuration, but it seems like

<screen
    android:screenDensity="560"
    android:screenSize="normal" />

is the correct option.


My app was not compatible with the Nexus 6, though, due to a conflict in my app’s Manifest. I used following feature requirements:

<uses-feature android:name="android.hardware.LOCATION" />
<uses-feature android:name="android.hardware.TELEPHONY" />
<uses-feature android:name="android.hardware.TOUCHSCREEN" />
<uses-feature android:name="android.hardware.WIFI" />
<uses-feature android:name="android.hardware.location.GPS" />
<uses-feature android:name="android.hardware.location.NETWORK" />
<uses-feature android:name="android.hardware.screen.PORTRAIT" />

But the correct version is with the features listed in all lowercase letters:

<uses-feature android:name="android.hardware.location" />
<uses-feature android:name="android.hardware.telephony" />
<uses-feature android:name="android.hardware.touchscreen" />
<uses-feature android:name="android.hardware.wifi" />
<uses-feature android:name="android.hardware.location.gps" />
<uses-feature android:name="android.hardware.location.network" />
<uses-feature android:name="android.hardware.screen.portrait" />

It's a bit tricky one, because permissions (in <uses-permission>) like

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

should be listed in capital letters, but feature (in <uses-feature>) should be lowercase.

I haven't come across the same issue on any other device, but if Nexus 6 requires this, it's probably the right way of doing it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!