仅在智能手机

时间:2016-01-15 21:40:03

标签: android google-play android-manifest compatibility

我一整天都在寻找一种只在智能手机上在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。

我必须做些什么来实现我的目标才能为智能手机而不是平板电脑或迷你网发布应用程序?

P.s:有没有办法看到这个清单修改的结果,而不是每次都重新发布应用程序?

2 个答案:

答案 0 :(得分:2)

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

<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问题,请告诉我。

答案 1 :(得分:1)

也许清单中的这样的条目会选择你想要的设备。

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