Android N has a new feature - Multi Window mode. It allows two applications to be active side by side (in fact, one of them is active, the other is suspended, but we can see both at the same time).
I'm looking for an API that I can call to get the application into multi-window mode. I could not find much help in the Android N SDK docs. I try to ensure that two actions of my application are performed side by side, but without the need to perform manual steps.
EXITING MUTLI-WINDOW MODE The user can switch to multi-window mode in the following ways:
If the user opens the "Overview" screen and performs a long press on the activity title, they can drag this activity to the highlighted part of the screen to enable the operation in multi-window mode. If the user presses the Browse button for a long time, the device places the current activity in multi-window mode and opens the Browse screen so that the user can select another activity for screen sharing.
source share