繁体   English   中英

仅在智能手机上的Google Play上发布Android应用

[英]Publish an Android App on Google Play only for smartphone

一整天,我一直在寻找一种仅在智能手机上在Google Play商店上发布Android APp的好方法。

我发现这种方式http://developer.android.com/guide/practices/screens-distribution.html#FilteringHansetApps

<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" />
        <screen android:screenSize="small" android:screenDensity="480" />
        <screen android:screenSize="small" android:screenDensity="560" />
        <!-- 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="normal" android:screenDensity="480" />
        <screen android:screenSize="normal" android:screenDensity="560" />
    </compatible-screens>

但是结果更奇怪。该应用程序似乎与某些设备兼容,而某些与其他设备显然没有兼容。 例如:该应用程序与:galaxy s6,galaxy s6 edge plus,google nexus 6兼容,但与三星galaxy s6 edge不兼容。

为了实现仅针对智能手机而不是针对平板电脑或minipc发布应用程序的目标,我该怎么办?

附言:有没有一种方法可以查看此清单修改的结果,而不必每次都重新发布该应用程序?

编辑::更改了整个答案。

<screen android:screenSize="small" android:screenDensity="xxdpi" />
<screen android:screenSize="small" android:screenDensity="xxxhdpi" />
<screen android:screenSize="small" android:screenDensity="tvdpi" />


<screen android:screenSize="normal" android:screenDensity="xxdpi" />
<screen android:screenSize="normal" android:screenDensity="xxxhdpi" />
<screen android:screenSize="normal" android:screenDensity="tvdpi" />

因此,在精确地阐明了问题之后,我发现您缺少这6行代码,无法获得小尺寸和普通屏幕尺寸的所有密度。

让我知道是否可以解决Samsum S6 Edge问题。

清单中类似这样的条目可能会选择您想要的设备。

<uses-feature android:name="android.hardware.telephony" android:required="true"/>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM