我有以下清单:
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
<compatible-screens>
<screen android:screenSize="small"/>
<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"/>
<screen android:screenSize="normal"/>
<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"/>
<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"/>
<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>
<uses-feature android:name="android.hardware.telephony" android:required="false"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="10"/>
但市场仍然向我报告该应用仅与近一半的设备兼容。例如。不支持某些型号的Nexus S和Galaxy Tab 7“(Galaxy Tab GT-P1000),但相反支持Galaxy Tab 10”(Galaxy Tab 10.1 SHW-M380K)。我真的很困惑,我做错了什么?
清单的完整源代码是available here
答案 0 :(得分:1)
如果你想要它可用于所有东西,这就足够了:
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
忘记兼容屏幕或在此处阅读更多内容:http://developer.android.com/guide/practices/screens_support.html
答案 1 :(得分:0)
总结上面的讨论,配方如下:
<supports-screens>
和<compatible-screens>
标记
清单<uses-sdk android:minSdkVersion>
中所述在SDK下重新编译项目(在本例中)
Android 1.5)就是这样。