m property
M.
Released publicly as Android 6.0 in October 2015.
Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the Android 6.0 Marshmallow overview.
-
Runtime permissions. Dangerous permissions are no longer granted at install time, but must be requested by the application at runtime through
Activity.requestPermissions(String, int)
. -
Bluetooth and Wi-Fi scanning now requires holding the location permission.
-
AlarmManager.setTimeZone
will fail if the given timezone is non-Olson. -
Activity transitions will only return shared elements mapped in the returned view hierarchy back to the calling activity.
-
View
allows a number of behaviors that may break existing apps: Canvas throws an exception if restore() is called too many times, widgets may return a hint size when returning UNSPECIFIED measure specs, and it will respect the attributesR.attr.foreground
,R.attr.foregroundGravity
,R.attr.foregroundTint
, andR.attr.foregroundTintMode
. -
MotionEvent.getButtonState
will no longer reportMotionEvent.BUTTON_PRIMARY
andMotionEvent.BUTTON_SECONDARY
as synonyms forMotionEvent.BUTTON_STYLUS_PRIMARY
andMotionEvent.BUTTON_STYLUS_SECONDARY
. -
ScrollView
now respects the layout param margins when measuring.
Constant Value: 23 (0x00000017)
Added in API level 23
Implementation
static int get m => Build_VERSION_CODES.M;