Build.VERSION_CODES.P Field

Definition

Caution

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

P.

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

Field Value

Value = 28
Attributes

Remarks

P.

Released publicly as Android 9 in August 2018.

Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the Android 9 Pie overview.

<ul> <li>android.app.Service#startForeground Service.startForeground requires that apps hold the permission android.Manifest.permission#FOREGROUND_SERVICE.</li> <li>android.widget.LinearLayout will always remeasure weighted children, even if there is no excess space.</li> </ul>

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

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