我的应用与7英寸显示器的三星Galaxy Tab 4不兼容。但是,我已将这些行包括在我的清单中。我需要改变什么?
<compatible-screens>
<!-- all normal size screens -->
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
<screen android:screenSize="normal" android:screenDensity="420" />
<screen android:screenSize="normal" android:screenDensity="480" />
<screen android:screenSize="normal" android:screenDensity="560" />
<screen android:screenSize="normal" android:screenDensity="640" />
<!-- all large size screens -->
<screen android:screenSize="large" android:screenDensity="mdpi" />
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="large" android:screenDensity="xhdpi" />
<screen android:screenSize="large" android:screenDensity="420" />
<screen android:screenSize="large" android:screenDensity="480" />
<screen android:screenSize="large" android:screenDensity="560" />
<screen android:screenSize="large" android:screenDensity="640" />
</compatible-screens>
答案 0 :(得分:1)
在您的清单文件中添加以下代码:
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />
答案 1 :(得分:0)
您的应用是否正在使用设备所没有的功能?
我们在一年前用AUTOFOCUS用于后置摄像头遇到了这个问题,很多7-8&#34;平板电脑似乎没有。
编辑:根据Marat Kumar M的上述答案,您要添加的内容如下:
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="false"
android:xlargeScreens="false" />