lollipop property

int get lollipop

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.

  • Context.bindService now requires an explicit Intent, and will throw an exception if given an implicit Intent.

  • Notification.Builder will not have the colors of their various notification elements adjusted to better match the new material design look.

  • Message will validate that a message is not currently in use when it is recycled.

  • Hardware accelerated drawing in windows will be enabled automatically in most places.

  • Spinner throws an exception if attaching an adapter with more than one item type.

  • 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 LauncherApps to correctly populate its apps UI).

  • Calling Service.stopForeground with removeNotification false will modify the still posted notification so that it is no longer forced to be ongoing.

  • A DreamService must require the Manifest.permission.BIND_DREAM_SERVICE permission to be usable.

Constant Value: 21 (0x00000015)

Added in API level 21

Implementation

static int get lollipop => Build_VERSION_CODES.LOLLIPOP;