语言

Build.VERSION_CODES.HoneycombMr2 字段

定义

注意

This constant will be removed in the future version. Use Android.OS.BuildVersionCodes enum directly instead of this field.

H MR2.

[Android.Runtime.Register("HONEYCOMB_MR2")]
[System.Obsolete("This constant will be removed in the future version. Use Android.OS.BuildVersionCodes enum directly instead of this field.", true)]
public const Android.OS.BuildVersionCodes HoneycombMr2 = 13;
[<Android.Runtime.Register("HONEYCOMB_MR2")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.OS.BuildVersionCodes enum directly instead of this field.", true)>]
val mutable HoneycombMr2 : Android.OS.BuildVersionCodes

字段值

Value = 13
特性

注解

H MR2.

2011 年 7 月公开发布为 Android 3.2。

更新 Honeycomb MR1 以支持 7 英寸平板电脑、改进屏幕兼容性模式等。

从此版本开始,不说明它们是否支持 XLARGE 屏幕的应用程序只有在目标或更高版本时才会假定这样做 #HONEYCOMB ;它一直 #GINGERBREAD 或更高。 支持屏幕大小的应用程序至少与当前屏幕一样大,将为用户提供一个 UI,以将其切换到屏幕大小兼容模式。

此版本基于 dp 中的屏幕大小引入新的屏幕大小资源限定符:请参阅、android.content.res.Configuration#screenWidthDp查看android.content.res.Configuration#screenHeightDp和android.content.res.Configuration#smallestScreenWidthDp。 根据以下情况android.content.pm.ApplicationInfo#requiresSmallestWidthDp在支持屏幕>中<提供这些内容,android.content.pm.ApplicationInfo#compatibleWidthLimitDp并且android.content.pm.ApplicationInfo#largestWidthLimitDp首选于较旧的屏幕大小存储桶,对于较旧的设备,将从它们推断相应的存储桶。

面向此或更高版本的应用程序将获取这些行为的新更改:

<ul><li>

此版本中引入了新功能 android.content.pm.PackageManager#FEATURE_SCREEN_PORTRAIT 和 android.content.pm.PackageManager#FEATURE_SCREEN_LANDSCAPE 功能。 假定面向以前平台版本的应用程序需要设备中的纵向和横向支持;当面向 Honeycomb MR1 或更高版本时,应用程序负责指定它所需的任何特定方向。

<li>

android.os.AsyncTask 将在调用 android.os.AsyncTask#execute时默认使用串行执行程序。

<li>

android.content.pm.ActivityInfo#configChanges ActivityInfo.configChanges 将设置 android.content.pm.ActivityInfo#CONFIG_SCREEN_SIZE 位 android.content.pm.ActivityInfo#CONFIG_SMALLEST_SCREEN_SIZE ;对于较旧的应用程序,需要清除这些内容,因为一些开发人员对此值进行了绝对比较,而不是正确屏蔽他们感兴趣的位。 </ul>

Java文档android.os.Build.VERSION_CODES.HONEYCOMB_MR2。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于