手机应用程序的最大WidthLimitDp应该是多少(不支持平板电脑) [英] What should be the largestWidthLimitDp for Phone only app (Do not support Tablet)

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

问题描述

我想为我的Android应用程序支持电话而不是平板电脑。根据我所使用的指导原则,支持屏幕标签如下所示。问题是该应用程序没有在Play Store中列出,用于Mi 4i,Mi Note等一些手机设备。我认为问题出在largetWidthLimitDp值,还是其他内容?

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

<使用权限android:name =android.permission.INTERNET/>
< uses-permission android:name =android.permission.ACCESS_NETWORK_STATE/>


解决方案

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



您应该考虑为什么您真的想排除平板电脑支持。这完全是您做出的商业决策,但完全违背了Android理念。 手机或平板电脑没有明确的定义。那么平板呢?那么Android电视呢? Chromebook呢?电话停靠在电脑显示器上呢?对于我们还没有想过的新设备呢?

想想这个问题的一个有用的方法是这意味着我们不想要目标他们?




  • 如果事实上他们通常不打电话,那么需要使用功能 android.hardware.telephony ,并接受您允许使用平板电脑的事实可以打电话。这是可以的,因为您的商业决策基于拨打电话的能力。

  • 如果事实上他们拥有大屏幕,则将屏幕大小作为定位。排除大屏幕手机将是好的,因为业务原因是大屏幕。



但是说我们不想目标平板电脑没有一个好的技术原因,因为它不关心什么是你不想支持的平板电脑,这可能是一个错误,因为没有平板电脑的技术定义,并且你可能有几千个奇怪和​​美妙的Android设备没有想过。

关于您的具体问题 android:largestWidthLimitDp 与支持的内容无关。相反,它强制兼容模式。请参阅文档。在Play控制台的右侧菜单中有一个条目设备目录。这将让你搜索不同的设备,如果他们不支持你的应用程序,它会解释为什么。


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 isn't just phones and tablets.

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?"

  • 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.

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.

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.

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

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