什么是Nexus的6右侧屏幕大小和密度的配置? [英] What is the right screen size and density configuration of Nexus 6?

查看:176
本文介绍了什么是Nexus的6右侧屏幕大小和密度的配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序没有列出的Nexus 6在谷歌支持的设备播放控制台。

My app doesn't list Nexus 6 as a supported device in Google Play Console.

我阅读博客文章的让你的应用程序准备的Nexus 6和Nexus 9 它说:

I read the blog post Getting Your Apps Ready for Nexus 6 and Nexus 9 which says:

的Nexus 6具有 560 DPI ,它落在之间的量化密度   xxhdpi和xxxhdpi主要密度桶。

Nexus 6 has a quantized density of 560 dpi, which falls in between the xxhdpi and xxxhdpi primary density buckets.

有一个款正是我的问题:

There is a paragraph exactly about my problem:

确保你不被过滤在谷歌播放

如果您使用的是    在AndroidManifest.xml文件中的元素,你   应停止使用它,因为它是不可扩展的重新编译和   每次有新的设备问世发布应用程序。但是,如果你一定要   使用它,请务必更新清单添加配置   这些设备(由屏幕尺寸和密度)。否则,你的应用程序可能会   排除在谷歌播放这些设备上的搜索结果。

If you are using the element in the AndroidManifest.xml file, you should stop using it because it’s not scalable to re-compile and publish your app each time new devices come out. However, if you must use it, make sure to update the manifest to add the configuration for these devices (by screen size and density). Otherwise your app may be excluded from Google Play search results on these devices.

好吧,我不得不使用<兼容屏> ,因为我试图排除片我的应用程序

Well, I have to use <compatible-screens> because I'm trying to exclude my app from tablets.

我现在的&LT;兼容屏&gt;在清单元素如下:

<compatible-screens>
    <!-- small size screens -->
    <screen
        android:screenDensity="ldpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="480"
        android:screenSize="small" />

    <!-- normal size screens -->
    <screen
        android:screenDensity="ldpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="480"
        android:screenSize="normal" />
    <screen
        android:screenDensity="640"
        android:screenSize="normal" />
</compatible-screens>

什么是正确配置的Nexus 6?

我曾尝试:

    <screen
        android:screenDensity="560"
        android:screenSize="normal" />
    <screen
        android:screenDensity="480"
        android:screenSize="large" />
    <screen
        android:screenDensity="560"
        android:screenSize="large" />
    <screen
        android:screenDensity="640"
        android:screenSize="large" />

但没有它似乎做的伎俩。

But none of it seems to do the trick.

推荐答案

我问谷歌播放的支持,并得到了帮助我解决这个问题一个答案。

I asked Google Play support and got an answer which helped me solve the issue.

不过不是100%肯定正确的屏幕配置,但似乎

Still not 100% sure about the right screen configuration, but it seems like

<screen
    android:screenDensity="560"
    android:screenSize="normal" />

是正确的选项。

is the correct option.

我的应用程序是不是与Nexus 6兼容,不过,由于我的应用程序的清单冲突。我用下面的功能要求:

My app was not compatible with the Nexus 6, though, due to a conflict in my app’s Manifest. I used following feature requirements:

<uses-feature android:name="android.hardware.LOCATION" />
<uses-feature android:name="android.hardware.TELEPHONY" />
<uses-feature android:name="android.hardware.TOUCHSCREEN" />
<uses-feature android:name="android.hardware.WIFI" />
<uses-feature android:name="android.hardware.location.GPS" />
<uses-feature android:name="android.hardware.location.NETWORK" />
<uses-feature android:name="android.hardware.screen.PORTRAIT" />

但正确的版本是在所有小写字母列出的特点:

But the correct version is with the features listed in all lowercase letters:

<uses-feature android:name="android.hardware.location" />
<uses-feature android:name="android.hardware.telephony" />
<uses-feature android:name="android.hardware.touchscreen" />
<uses-feature android:name="android.hardware.wifi" />
<uses-feature android:name="android.hardware.location.gps" />
<uses-feature android:name="android.hardware.location.network" />
<uses-feature android:name="android.hardware.screen.portrait" />

这是一个有点棘手,因为权限(在&LT;使用-许可&GT; )像

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

应列入大写字母,但功能(在&LT;使用特征&GT; )应该是小写

should be listed in capital letters, but feature (in <uses-feature>) should be lowercase.

我还没有碰到过同样的问题上的任何其他设备,但如果Nexus的6需要这个,它可能做的正确的方式。

I haven't come across the same issue on any other device, but if Nexus 6 requires this, it's probably the right way of doing it.

这篇关于什么是Nexus的6右侧屏幕大小和密度的配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆