72.8 Detecting Multi-Window Mode in an Activity
Situations may arise where an activity needs to detect whether it is currently being displayed to the user in multi-window mode. The current status can be obtained via a call to the isInMultiWindowMode() method of the Activity class. When called, this method returns a true or false value depending on whether or not the activity is currently full screen:
if (this.isInMultiWindowMode()) {
// Activity is running in Multi-Window mode
} else {
// Activity is not in Multi-Window mode
}