我已经在Google Play商店中发布了一个应用。此应用是专为手机设计的,我通过编辑清单文件中的兼容屏幕元素使平板电脑不可见。
问题在于,某些具有大屏幕尺寸(大于5英寸)的手机也无法在Google Play商店上“看到”我的应用程序。例如,我在Play商店中找不到来自三星银河笔记4(5.7英寸,1440 x 2560像素,〜515 ppi)的应用。
我应该如何设置我的兼容屏幕元素,以便可以准确区分手机和平板电脑?
<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" />
<screen android:screenSize="normal" android:screenDensity="480" />
<screen android:screenSize="normal" android:screenDensity="560" />
</compatible-screens>
当我第一次发布我的应用程序时,我在nexus 6上也遇到了同样的问题。
<screen android:screenSize="normal" android:screenDensity="480" />
<screen android:screenSize="normal" android:screenDensity="560" />
之后,我的应用程序可用于nexus 6,但仍不适用于平板电脑。我如何才能使它对于三星银河笔记4也可见?
要提供对Samsung Galaxy note 4的支持,请在清单中添加给定的代码段
<compatible-screens>
<screen
android:screenDensity="640"
android:screenSize="normal" />
</compatible-screens>
另外,至少要提供一个xxxhdpi应用程序图标,因为设备可以在启动器上显示大型应用程序图标。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句