n property
N.
Released publicly as Android 7.0 in August 2016.
Applications targeting this or a later release will get these new changes in behavior. For more information about this release, see the Android Nougat overview.
-
DownloadManager.Request.setAllowedNetworkTypes
will disable "allow over metered" when specifying onlyDownloadManager.Request.NETWORK_WIFI
. -
DownloadManager
no longer allows access to raw file paths. -
Notification.Builder.setShowWhen
must be called explicitly to have the time shown, and various other changes inNotification.Builder
to how notifications are shown. -
Context.MODE_WORLD_READABLE
andContext.MODE_WORLD_WRITEABLE
are no longer supported. -
FileUriExposedException
will be thrown to applications. -
Applications will see global drag and drops as per
View.DRAG_FLAG_GLOBAL
. -
WebView.evaluateJavascript
will not persist state from an empty WebView. -
AnimatorSet
will not ignore calls to end() before start(). -
AlarmManager.cancel
will throw a NullPointerException if given a null operation. -
FragmentManager
will ensure fragments have been created before being placed on the back stack. -
FragmentManager
restores fragments inFragment.onCreate
rather than after the method returns. -
R.attr.resizeableActivity
defaults to true. -
AnimatedVectorDrawable
throws exceptions when opening invalid VectorDrawable animations. -
ViewGroup.MarginLayoutParams
will no longer be dropped when converting between some types of layout params (such asLinearLayout.LayoutParams
toRelativeLayout.LayoutParams
). -
Your application processes will not be killed when the device density changes.
-
Drag and drop. After a view receives the
DragEvent.ACTION_DRAG_ENTERED
event, when the drag shadow moves into a descendant view that can accept the data, the view receives theDragEvent.ACTION_DRAG_EXITED
event and won\u2019t receiveDragEvent.ACTION_DRAG_LOCATION
andDragEvent.ACTION_DROP
events while the drag shadow is within that descendant view, even if the descendant view returns false from its handler for these events.
Constant Value: 24 (0x00000018)
Added in API level 24
Implementation
static int get n => Build_VERSION_CODES.N;