我有一个Nexus 6(1440 x 2560像素(〜493 ppi像素密度))和一个LG G3(1440 x 2560像素(〜538 ppi像素密度)),Nexus 6在Play Store中不支持
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="..."
android:installLocation="preferExternal"
android:versionCode="..."
android:versionName="...">
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="22"/>
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<uses-feature
android:name="android.hardware.touchscreen"
android:required="true"/>
<uses-feature
android:name="android.hardware.location"
android:required="true"/>
<uses-feature
android:name="android.hardware.camera"
android:required="true"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<!--GCM-->
<permission android:name="...permission.C2D_MESSAGE" android:protectionLevel="signature"/>
<uses-permission android:name="...permission.C2D_MESSAGE"/>
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<!-- =========== Screen Types =========== -->
<supports-screens android:requiresSmallestWidthDp="400"/>
<compatible-screens>
<!-- all small size screens -->
<screen
android:screenDensity="mdpi"
android:screenSize="small"/>
<screen
android:screenDensity="hdpi"
android:screenSize="small"/>
<screen
android:screenDensity="xhdpi"
android:screenSize="small"/>
<screen
android:screenDensity="480"
android:screenSize="small"/>
<screen
android:screenDensity="640"
android:screenSize="small"/>
<!-- all normal size screens -->
<screen
android:screenDensity="mdpi"
android:screenSize="normal"/>
<screen
android:screenDensity="hdpi"
android:screenSize="normal"/>
<screen
android:screenDensity="xhdpi"
android:screenSize="normal"/>
<screen
android:screenDensity="480"
android:screenSize="normal"/>
<screen
android:screenDensity="640"
android:screenSize="normal"/>
<!-- all large size screens -->
<screen
android:screenDensity="mdpi"
android:screenSize="large"/>
<screen
android:screenDensity="hdpi"
android:screenSize="large"/>
<screen
android:screenDensity="xhdpi"
android:screenSize="large"/>
<screen
android:screenDensity="480"
android:screenSize="large"/>
<screen
android:screenDensity="640"
android:screenSize="large"/>
</compatible-screens>
的LG G3可以下载应用程序,但Nexus的6不能。我在这里错过了什么?
谢谢。
编辑: Haresh Chhelana答案是正确的,虽然这是更多的黑客而不是解决方案。我认为谷歌应该改变supports-screens
不仅仅是为了启用屏幕兼容模式(在我看来很没用),但排除一些设备。这是更符合逻辑是这样的:
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="false"
android:anyDensity="true"/>
而是里面compatible-screens
指定所有可能的组合,这就是为什么象这样的错误发生(工作的时候,我们只是希望片中所以它应该工作太只是手机,但事实并非如此。 ..)。
只是好奇,为什么所有这些限制的屏幕尺寸和密度? – Divers
我只想手机,没有平板电脑和480 = xxhdpi,640 = xxxhdpi – GuilhE