語言

Build.VERSION_CODES.N 欄位

定義

警告

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

欄位值

Value = 24
屬性

備註

N.

於 2016 年 8 月以 Android 7.0 正式公開發佈。

針對此版本或後續版本的應用程式會獲得這些行為上的改變。 欲了解更多關於此版本的資訊,請參閱 Android Nougat 總覽。

<UL><LI>android.app.DownloadManager.Request#setAllowedNetworkTypes DownloadManager.Request.setAllowedNetworkTypes 在只android.app.DownloadManager.Request#NETWORK_WIFI指定 時會關閉「允許超過計量」功能。</li><li>android.app.DownloadManager 不再允許存取原始檔案路徑。<必須明確呼叫 /li><>android.app.Notification.Builder#setShowWhen Notification.Builder.setShowWhen li 才能顯示時間,並對通知顯示方式有其他變更。android.app.Notification.Builder Notification.Builder</li><li>android.content.Context#MODE_WORLD_READABLE 和 android.content.Context#MODE_WORLD_WRITEABLE 已不再支援。</李><莉>android.os.FileUriExposedException會被丟去申請。</li>li 應用程式將根據 看到<全域拖放>。android.view.View#DRAG_FLAG_GLOBAL</li><li>android.webkit.WebView#evaluateJavascript WebView.evaluateJavascript 不會從空的 WebView 中持久化狀態。</li><li>android.animation.AnimatorSet 不會忽略在開始前 end() 的呼叫。</li><li>android.app.AlarmManager#cancel(android.app.PendingIntent) AlarmManager.cancel 若給定 null 操作,會拋出 NullPointerException。</li><Li>android.app.FragmentManager 會確保碎片在放入後堆前已經建立好。</li><Li>android.app.FragmentManager 是透過 Return android.app.Fragment#onCreate Fragment.onCreate 方法還原片段,<而非在回傳後。/li><li>android.R.attr#resizeableActivity 預設為 true。</li><li>android.graphics.drawable.AnimatedVectorDrawable 在開啟無效的 VectorDrawable 動畫時會拋出例外。</li><li>android.view.ViewGroup.MarginLayoutParams 在某些類型的配置參數間轉換時(如 android.widget.LinearLayout.LayoutParams LinearLayout.LayoutParams toandroid.widget.RelativeLayout.LayoutParams RelativeLayout.LayoutParams)將不再被刪除。</li><li>你的應用流程不會因為裝置密度改變而被終止。</李><里>拖放。 視圖接收 android.view.DragEvent#ACTION_DRAG_ENTERED 事件後,當拖曳陰影移至可接受資料的後繼視角時,視圖會 android.view.DragEvent#ACTION_DRAG_EXITED 接收事件,且在拖曳陰影處於該後代視角時不會接收 android.view.DragEvent#ACTION_DRAG_LOCATION 事件 android.view.DragEvent#ACTION_DROP ,即使後代視圖從處理者返回 false 這些事件。</li></ul>

Java 文件 android.os.Build.VERSION_CODES.N。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於