Play商店中的兼容屏幕的Android应用更新问题

时间:2015-06-17 11:13:21

标签: android google-play android-manifest

我很简单希望将我的应用限制为平板电脑。

在我的应用程序的1.0版本中,所有设备和2.3以上操作系统完全可见。

在版本1.1中,我根据Google开发人员指南更新了清单条目,我的应用更新1.1对于Play商店Android应用中的xxhpi和xxxhpi设备..etc不可见,其余设备正在接收它。

虽然像nexus 5这样的xxdhpi和xxxhdpi,但是nexus 6位于Google App Publishing Console支持的设备列表中

遵循这些准则 Link 1 Link 2 Link 3

<uses-sdk
    android:minSdkVersion="10"
    android:targetSdkVersion="22" />


<supports-screens
    android:anyDensity="true"
    android:largeScreens="false"
    android:normalScreens="true"
    android:smallScreens="false"
    android:xlargeScreens="false" />

<compatible-screens>
    <!-- all small size screens -->
    <screen
        android:screenDensity="ldpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="small" />
    <!-- all normal size screens -->
    <screen
        android:screenDensity="ldpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="normal" />
</compatible-screens>    

1 个答案:

答案 0 :(得分:1)

最后我创建了一个假的应用程序并进行了测试。这些是manifest.xml配置的条目,它将您的应用程序限制为平板电脑,并在电话(5英寸到6英寸)的大屏幕上完全可见,如Nexus 5,6

<compatible-screens>
    <screen
        android:screenDensity="ldpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="ldpi"
        android:screenSize="normal" />
    <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="560"
        android:screenSize="normal" />

    <screen
        android:screenDensity="640"
        android:screenSize="normal" />
</compatible-screens>

enter image description here