Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/226.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 限制从Google Play下载平板电脑_Android_Android Layout_Device - Fatal编程技术网

Android 限制从Google Play下载平板电脑

Android 限制从Google Play下载平板电脑,android,android-layout,device,Android,Android Layout,Device,我知道有一个话题已经谈过了: 我已将上述代码应用于我的项目,但不知何故,某些设备仍被识别为平板电脑: •三星S8+Android 7.0(2960x1440 6.2') •Nexus 5X安卓8.0(1920x1080 5.2') •谷歌像素2安卓8.0(1920x1080 5’) 应用程序页面上会显示消息“您的设备与此版本不兼容” 那么,有没有办法确保所有手机都可以下载应用程序而不是平板电脑呢 非常感谢我想这和我的答案是一样的,但是我的答案没有被投票或接受,所以我不会把它标记为重复。所以

我知道有一个话题已经谈过了:


我已将上述代码应用于我的项目,但不知何故,某些设备仍被识别为平板电脑:

•三星S8+Android 7.0(2960x1440 6.2')

•Nexus 5X安卓8.0(1920x1080 5.2')

•谷歌像素2安卓8.0(1920x1080 5’)

应用程序页面上会显示消息“您的设备与此版本不兼容”

那么,有没有办法确保所有手机都可以下载应用程序而不是平板电脑呢


非常感谢

我想这和我的答案是一样的,但是我的答案没有被投票或接受,所以我不会把它标记为重复。所以我将在这里复制我的答案。这个答案是关于排除平板电脑,但限制平板电脑也有类似的答案

Android不仅仅是手机和平板电脑。

你应该考虑为什么你真的想排除平板电脑支持。这完全是你的商业决策,但完全违背了Android的理念。“手机”或“平板电脑”没有明确的定义。”“怎么样?安卓电视呢?Chromebook呢?接在电脑显示器上的手机呢?那我们还没有考虑过的新设备呢

思考这一点的一个有用方法是“平板电脑的哪些方面意味着我们不想瞄准它们?”

  • 如果这是事实,他们通常不打电话,然后要求使用功能,并接受事实,你将允许平板电脑可以打电话。这没关系,因为你的商业决策是基于打电话的能力
  • 如果他们有大屏幕,那么就用屏幕大小作为目标。排除大屏幕手机是可以的,因为商业原因是大屏幕。你提到的手机屏幕很大

但是说“我们不想瞄准平板电脑”,却没有一个好的技术理由来解释你不想支持的平板电脑,这可能是一个错误,因为“平板电脑”没有技术上的定义,还有1000多个你可能没有想到的奇怪而奇妙的安卓设备

我想这和我的答案是一样的,但是我的答案没有被投票或接受,所以我不会把它标记为重复。所以我将在这里复制我的答案。这个答案是关于排除平板电脑,但限制平板电脑也有类似的答案

Android不仅仅是手机和平板电脑。

你应该考虑为什么你真的想排除平板电脑支持。这完全是你的商业决策,但完全违背了Android的理念。“手机”或“平板电脑”没有明确的定义。”“怎么样?安卓电视呢?Chromebook呢?接在电脑显示器上的手机呢?那我们还没有考虑过的新设备呢

思考这一点的一个有用方法是“平板电脑的哪些方面意味着我们不想瞄准它们?”

  • 如果这是事实,他们通常不打电话,然后要求使用功能,并接受事实,你将允许平板电脑可以打电话。这没关系,因为你的商业决策是基于打电话的能力
  • 如果他们有大屏幕,那么就用屏幕大小作为目标。排除大屏幕手机是可以的,因为商业原因是大屏幕。你提到的手机屏幕很大

但是说“我们不想瞄准平板电脑”,却没有一个好的技术理由来解释你不想支持的平板电脑,这可能是一个错误,因为“平板电脑”没有技术上的定义,还有1000多个你可能没有想到的奇怪而奇妙的安卓设备

让我们尝试以下方法:

<compatible-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="420" />
    <screen android:screenSize="small" android:screenDensity="480" />
    <screen android:screenSize="small" android:screenDensity="560" />
    <screen android:screenSize="small" android:screenDensity="640" />
    <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="420" />
    <screen android:screenSize="normal" android:screenDensity="480" />
    <screen android:screenSize="normal" android:screenDensity="560" />
    <screen android:screenSize="normal" android:screenDensity="640" />
    <screen android:screenSize="large" android:screenDensity="ldpi" />
    <screen android:screenSize="large" android:screenDensity="mdpi" />
    <screen android:screenSize="large" android:screenDensity="hdpi" />
    <screen android:screenSize="large" android:screenDensity="xhdpi" />
    <screen android:screenSize="large" android:screenDensity="420" />
    <screen android:screenSize="large" android:screenDensity="480" />
    <screen android:screenSize="large" android:screenDensity="560" />
    <screen android:screenSize="large" android:screenDensity="640" />
</compatible-screens>


希望有帮助。

让我们尝试以下方法:

<compatible-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="420" />
    <screen android:screenSize="small" android:screenDensity="480" />
    <screen android:screenSize="small" android:screenDensity="560" />
    <screen android:screenSize="small" android:screenDensity="640" />
    <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="420" />
    <screen android:screenSize="normal" android:screenDensity="480" />
    <screen android:screenSize="normal" android:screenDensity="560" />
    <screen android:screenSize="normal" android:screenDensity="640" />
    <screen android:screenSize="large" android:screenDensity="ldpi" />
    <screen android:screenSize="large" android:screenDensity="mdpi" />
    <screen android:screenSize="large" android:screenDensity="hdpi" />
    <screen android:screenSize="large" android:screenDensity="xhdpi" />
    <screen android:screenSize="large" android:screenDensity="420" />
    <screen android:screenSize="large" android:screenDensity="480" />
    <screen android:screenSize="large" android:screenDensity="560" />
    <screen android:screenSize="large" android:screenDensity="640" />
</compatible-screens>


希望有帮助。

仍然有2台设备无法使用您的代码下载:•Nexus 5X Android 8.0(1920x1080 5.2')•Oneplus 5 Android 7.1.1(1920x1080 5.5')仍然有2台设备无法使用您的代码下载:•Nexus 5X Android 8.0(1920x1080 5.2')•Oneplus 5 Android 7.1.1(1920x1080 5.5')是的,我使用Android.hardware.telephony,现在没有用户再抱怨这个问题了,很抱歉回答得太晚了…:例如,我使用android.hardware.telephony,现在没有用户再抱怨这个问题了,很抱歉回答得太晚了…:D