Partager via


Build.VERSION_CODES.Donut Field

Definition

Caution

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

D.

[Android.Runtime.Register("DONUT")]
[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 Donut = 4;
[<Android.Runtime.Register("DONUT")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.OS.BuildVersionCodes enum directly instead of this field.", true)>]
val mutable Donut : Android.OS.BuildVersionCodes

Field Value

Value = 4
Attributes

Remarks

D.

Released publicly as Android 1.6 in September 2009.

Applications targeting this or a later release will get these new changes in behavior:

<ul> <li> They must explicitly request the android.Manifest.permission#WRITE_EXTERNAL_STORAGE permission to be able to modify the contents of the SD card. (Apps targeting earlier versions will always request the permission.) <li> They must explicitly request the android.Manifest.permission#READ_PHONE_STATE permission to be able to be able to retrieve phone state info. (Apps targeting earlier versions will always request the permission.) <li> They are assumed to support different screen densities and sizes. (Apps targeting earlier versions are assumed to only support medium density normal size screens unless otherwise indicated). They can still explicitly specify screen support either way with the supports-screens manifest tag. <li> android.widget.TabHost will use the new dark tab background design. </ul>

Java documentation for android.os.Build.VERSION_CODES.DONUT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to