android manifest中有哪些标签限制应用程序只能用于Playstore上的手机?

android manifest中有哪些标签限制应用程序只能用于Playstore上的手机?,android,android-manifest,Android,Android Manifest,我想使我的应用程序仅在手机上可用,即屏幕尺寸小于5.5英寸的设备。如何限制我的应用程序在Play store的平板电脑上可见?这将起作用- <manifest ... > <compatible-screens> <!-- all small size screens --> <screen android:screenSize="small" android:screenDensity="ldpi" />

我想使我的应用程序仅在手机上可用,即屏幕尺寸小于5.5英寸的设备。如何限制我的应用程序在Play store的平板电脑上可见?

这将起作用-

<manifest ... >
    <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" />
    </compatible-screens>
    ...
    <application ... >
        ...
    <application>
</manifest>

...

您还可以根据设备大小进行声明

例如,您可以尝试将最大宽度设置为
600(非平板电脑)


使用以下设置。这似乎正确地过滤了平板电脑,仅包括Galaxy s6、nexus 6等手机



这是我清单中的内容,但没有列出最新的旗舰设备,如Egalaxy s6、Nexus 6、Moto x G2和其他。没有。支持屏幕也将所有平板电脑显示为受支持的设备。这是否允许从非谷歌来源安装该应用程序?@Ahmed可能可以,但我不确定。检查是否有关于这方面的文件
<manifest ... >
    <supports-screens android:smallScreens="true"
                      android:normalScreens="true"
                      android:largeScreens="false"
                      android:xlargeScreens="false"
                      android:largestWidthLimitDp="600"
                       />
    ...
    <application ... >
        ...
    </application>
</manifest>
<supports-screens android:largestWidthLimitDp="600"/>
<!-- Support only devices with min 600dp witdth (Tablets)-->
<supports-screens android:requiresSmallestWidthDp="600" />