N constant

int const N

N is for Nougat.

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.

  • {@link android.app.DownloadManager.Request#setAllowedNetworkTypes DownloadManager.Request.setAllowedNetworkTypes} will disable "allow over metered" when specifying only {@link android.app.DownloadManager.Request#NETWORK_WIFI}.
  • {@link android.app.DownloadManager} no longer allows access to raw file paths.
  • {@link android.app.Notification.Builder#setShowWhen Notification.Builder.setShowWhen} must be called explicitly to have the time shown, and various other changes in {@link android.app.Notification.Builder Notification.Builder} to how notifications are shown.
  • {@link android.content.Context#MODE_WORLD_READABLE} and {@link android.content.Context#MODE_WORLD_WRITEABLE} are no longer supported.
  • {@link android.os.FileUriExposedException} will be thrown to applications.
  • Applications will see global drag and drops as per {@link android.view.View#DRAG_FLAG_GLOBAL}.
  • {@link android.webkit.WebView#evaluateJavascript WebView.evaluateJavascript} will not persist state from an empty WebView.
  • {@link android.animation.AnimatorSet} will not ignore calls to end() before start().
  • {@link android.app.AlarmManager#cancel(android.app.PendingIntent) AlarmManager.cancel} will throw a NullPointerException if given a null operation.
  • {@link android.app.FragmentManager} will ensure fragments have been created before being placed on the back stack.
  • {@link android.app.FragmentManager} restores fragments in {@link android.app.Fragment#onCreate Fragment.onCreate} rather than after the method returns.
  • {@link android.R.attr#resizeableActivity} defaults to true.
  • {@link android.graphics.drawable.AnimatedVectorDrawable} throws exceptions when opening invalid VectorDrawable animations.
  • {@link android.view.ViewGroup.MarginLayoutParams} will no longer be dropped when converting between some types of layout params (such as {@link android.widget.LinearLayout.LayoutParams LinearLayout.LayoutParams} to {@link android.widget.RelativeLayout.LayoutParams RelativeLayout.LayoutParams}).
  • Your application processes will not be killed when the device density changes.
  • Drag and drop. After a view receives the {@link android.view.DragEvent#ACTION_DRAG_ENTERED} event, when the drag shadow moves into a descendant view that can accept the data, the view receives the {@link android.view.DragEvent#ACTION_DRAG_EXITED} event and won’t receive {@link android.view.DragEvent#ACTION_DRAG_LOCATION} and {@link android.view.DragEvent#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.

Implementation

static const int N = 24;