仅电话应用程序的最大宽度限制 Dp 应该是多少(不支持平板电脑) [英] What should be the largestWidthLimitDp for Phone only app (Do not support Tablet)

查看:10
本文介绍了仅电话应用程序的最大宽度限制 Dp 应该是多少(不支持平板电脑)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在手机上支持我的 Android 应用,而不是在平板电脑上.根据指南,我使用了 support-screens 标签,如下所示.问题是某些手机设备(如 Mi 4i、Mi Note 等)的应用程序未在 Play Store 中列出.我认为问题出在 largetWidthLimitDp 值上,还是其他原因?

I want to support my Android app on for Phones and not for tablets. As per the guidelines I have used supports-screens tag as per below. The problem is the app is not listed in Play Store for some phone devices like Mi 4i, Mi Note etc. I think the problem is with the largetWidthLimitDp value, or is it something else?

<supports-screens android:smallScreens="true"
    android:normalScreens="true"
    android:largeScreens="true"
    android:xlargeScreens="false"
    android:largestWidthLimitDp="600" />

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

推荐答案

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

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

You should consider why you really want to exclude Tablet support. This is completely your business decision to make, but goes completely against the Android philosophy. There is no clear definition of "phone" or "tablet". What about "phablets"? What about Android TVs? What about Chromebooks? What about Phones docked to computer monitors? What about new devices we haven't even thought about yet?

思考这个问题的一个有用方法是平板电脑有什么地方意味着我们不想针对它们?"

A helpful way to think about this is "What is it about tablets that means we don't want to target them?"

  • 如果是他们通常不打电话的事实,那么需要使用功能 android.hardware.telephony 并接受您将允许平板电脑打电话的事实.这没关系,因为您的业务决策是基于打电话的能力.
  • 如果他们有大屏幕,那么使用屏幕尺寸作为目标.排除大屏手机是可以的,因为商业原因是大屏.
  • if it is the fact they normally don't make phone calls, then require uses-feature android.hardware.telephony and accept the fact you'll allow tablets that can make phone calls. This will be OK because your business decision is based on the ability to make phone calls.
  • If it is the fact they have large screens, then use screen size as targeting. Ruling out phones with large screens will be ok, because the business reason is large screens.

但是说我们不想针对平板电脑"而没有充分的技术理由说明您不想支持的平板电脑可能是错误的,因为没有平板电脑"的技术定义,而且有 1000 多种奇怪而美妙的 Android 设备,您可能没有想过.

But saying "we don't want to target tablets" without a good technical reason for what it is about tablets you don't want to support is probably a mistake, as there is no technical definition of "tablet" and there are 1000s of weird and wonderful Android devices out there you probably haven't thought about.

关于您的具体问题 android:largestWidthLimitDp 与支持的内容无关.相反,它强制兼容模式.请参阅文档.在 Play 管理中心的右侧菜单中有一个条目设备目录".这将让您搜索不同的设备,如果它们不支持您的应用,它会解释原因.

In regard to your specific question android:largestWidthLimitDp isn't anything to do with what is supported. Instead it forces compatibility mode. See the documentation. In the right hand side menu of the Play Console there is an entry "Device catalogue". This will let you search for different devices and if they don't support your app it will explain why.

这篇关于仅电话应用程序的最大宽度限制 Dp 应该是多少(不支持平板电脑)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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