diff --git a/docs/html/preview/features/multi-window.jd b/docs/html/preview/features/multi-window.jd index bfc4b820edabe..0f68c82761d5e 100644 --- a/docs/html/preview/features/multi-window.jd +++ b/docs/html/preview/features/multi-window.jd @@ -15,6 +15,12 @@ page.keywords="multi-window", "android N", "split screen", "free-form"
If you build your app with the N Preview SDK, you can configure how your app handles multi-window display. For example, you can specify your activity's - minimum allowable dimensions, preventing users from making the activity - window smaller than that size. You can also disable multi-window display for + minimum allowable dimensions. You can also disable multi-window display for your app, ensuring that the system only shows your app in full-screen mode.
@@ -64,7 +69,9 @@ page.keywords="multi-window", "android N", "split screen", "free-form" -
Figure 1. Two apps running side-by-side in split-screen mode. @@ -116,7 +123,12 @@ page.keywords="multi-window", "android N", "split screen", "free-form" Note: In multi-window mode, an app can be in the paused state and still be visible to the user. An app might need to continue its activities even while paused. For example, a video-playing app that is in - paused mode but is visible should continue showing its video. + paused mode but is visible should continue showing its video. For this + reason, we recommend that activities that play video not pause the + video in their {@link android.app.Activity#onPause onPause()} handlers. + Instead, they should pause video in {@link android.app.Activity#onStop + onStop()}, and resume playback in {@link android.app.Activity#onStart + onStart()}.
@@ -173,7 +185,7 @@ page.keywords="multi-window", "android N", "split screen", "free-form"
-android:resizableActivity=["true" | "false"] +android:resizeableActivity=["true" | "false"]
@@ -193,7 +205,8 @@ android:resizableActivity=["true" | "false"]
Set this attribute in your manifest's <activity> node to
- indicate whether the activity supports picture-in-picture display.
+ indicate whether the activity supports picture-in-picture display. This
+ attribute is ignored if android:resizeableActivity is false.
@@ -240,8 +253,9 @@ android:supportsPictureInPicture=["true" | "false"]
View.DRAG_FLAG_GLOBAL. If you need to give URI permissions to
+ the recipient activity, pass the new flags
+ View.DRAG_FLAG_GLOBAL_URI_READ or
+ View.DRAG_FLAG_GLOBAL_URI_WRITE, as appropriate.