Udostępnij za pośrednictwem


Build.VERSION_CODES.N Field

Definition

Caution

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

N.

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

Field Value

Value = 24
Attributes

Remarks

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.

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

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

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