[英]Google Play supported devices
我如何只允許為智能手機下載該應用程序,而排除所有平板電腦設備?
我目前在清單中有以下內容:
<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="640" />
<!-- 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="640" />
//編輯我知道列表中有大多數電話。 但是例如,我缺少聯系6,而支持注釋4。 同樣支持Nexus 7,這在我的情況下並不理想。
Android Developers網站已過時。 僅當我們已有xxhdpi時,它才顯示為xhdpi。 這是我過去用來支持所有手機並不包括平板電腦的內容:
<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="640" />
<!-- 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="640" />
</compatible-screens>
我像一個月前在我的應用程序中使用了它。
要同時添加nexus 6,請添加以下行:
<screen android:screenSize="normal" android:screenDensity="560" />
<screen android:screenSize="small" android:screenDensity="560" />
有關更多信息,請參見下面的注釋。
您想在清單中使用“兼容屏幕”元素。
http://developer.android.com/guide/topics/manifest/compatible-screens-element.html
這使您可以為各種屏幕尺寸和分辨率指定任何限制。
Google也在這里提供了一個指南: http : //developer.android.com/guide/practices/screens_support.html#range
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.