我已经在SO上搜索了很多类似的主题,但我无法弄清楚出了什么问题。我的应用程序不适用于某些设备(例如Galaxy S5 Android 5.0和Nexus 5 Android 6.0),但它只需要Internet许可。贝娄是我的manifest.xml:
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="23"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:required="false"/>
<uses-permission android:name="android.permission.VIBRATE" android:required="false"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS" android:required="false"/>
<uses-permission android:name="android.permission.WAKE_LOCK" android:required="false"/>
<uses-permission android:name="android.permission.INTERNET" android:required="true"/>
<permission android:name="com.mycompany.acbeu.permission.C2D_MESSAGE" android:protectionLevel="signature" android:required="false"/>
<uses-permission android:name="com.mycompany.acbeu.permission.C2D_MESSAGE" android:required="false"/>
<uses-permission android:name="android.permission.C2D_MESSAGE" android:required="false" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" android:required="false"/>
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true"/>
<compatible-screens>
<!-- all small size screens -->
<screen android:screenSize="small" android:screenDensity="ldpi" />
<screen android:screenSize="small" android:screenDensity="mdpi" />
<screen android:screenSize="small" android:screenDensity="hdpi" />
<screen android:screenSize="small" android:screenDensity="xhdpi" />
<!-- all normal size screens -->
<screen android:screenSize="normal" android:screenDensity="ldpi" />
<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
<screen android:screenSize="large" android:screenDensity="ldpi" />
<screen android:screenSize="large" android:screenDensity="mdpi" />
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="large" android:screenDensity="xhdpi" />
<screen android:screenSize="xlarge" android:screenDensity="ldpi" />
<screen android:screenSize="xlarge" android:screenDensity="mdpi" />
<screen android:screenSize="xlarge" android:screenDensity="hdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
</compatible-screens>
我读了一些关于&#34;复制保护&#34;的内容,但是提出问题的设备没有修改过的Android版本。我无法找到如何关闭复制保护。应用程序名称为&#34; Acbeu&#34;。
有没有办法知道该设备与我的应用程序不兼容的原因?
答案 0 :(得分:4)
你错过了
<screen android:screenSize="small" android:screenDensity="xxhdpi" />
<screen android:screenSize="small" android:screenDensity="xxxhdpi" />
...
<screen android:screenSize="normal" android:screenDensity="xxhdpi" />
<screen android:screenSize="normal" android:screenDensity="xxxhdpi" />
...
<screen android:screenSize="large" android:screenDensity="xxhdpi" />
<screen android:screenSize="large" android:screenDensity="xxxhdpi" />
...
<screen android:screenSize="xlarge" android:screenDensity="xxhdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xxxhdpi" />
您的<compatible-screens>
配置的标签。通过省略这些标签,您明确地不允许具有高分辨率屏幕的设备使用您的应用程序。如果您打算在所有Android设备上使用您的应用,请删除<compatible-screens>
部分。这是为了限制不符合该标签中指定的显式屏幕尺寸/分辨率标准的设备对您的应用的访问,因此在您的情况下,您可能不需要它,因为无论如何列出所有屏幕尺寸。