Build.VERSION_CODES.Lollipop Field

Definition

Caution

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

L.

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

Field Value

Value = 21
Attributes

Remarks

L.

Released publicly as Android 5.0 in November 2014.

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

<ul> <li> android.content.Context#bindService Context.bindService now requires an explicit Intent, and will throw an exception if given an implicit Intent.</li> <li> android.app.Notification.Builder Notification.Builder will not have the colors of their various notification elements adjusted to better match the new material design look.</li> <li> android.os.Message will validate that a message is not currently in use when it is recycled.</li> <li> Hardware accelerated drawing in windows will be enabled automatically in most places.</li> <li> android.widget.Spinner throws an exception if attaching an adapter with more than one item type.</li> <li> If the app is a launcher, the launcher will be available to the user even when they are using corporate profiles (which requires that the app use android.content.pm.LauncherApps to correctly populate its apps UI).</li> <li> Calling android.app.Service#stopForeground Service.stopForeground with removeNotification false will modify the still posted notification so that it is no longer forced to be ongoing.</li> <li> A android.service.dreams.DreamService must require the android.Manifest.permission#BIND_DREAM_SERVICE permission to be usable.</li> </ul>

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

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