Google is expanding support in Android to include Foldables Phones. Leo Sei, Product Manager on Android at Google, says the support is being developed in preparation for upcoming devices from hardware partners like Samsung.
Android will have screen continuity, so applications can be transitioned from one screen to another automatically (eg. when folding / unfolding a foldable phone). During this transition, apps will receive a configuration change for the new layout.
The second feature to Foldables Phones is Multi-resume. According to Google, today, when an app is in multi-window but not focused, it is on the OnPause state. Google says that to help developers provide the best user experience on multi-window with minimal effort, they are allowing device manufacturers to keep all apps resumed when in multi-windows in P.
The third feature is Multi-display, and beginning with Android 8.0 (API level 26), the platform offers enhanced support for multiple displays. If an activity supports multi-window mode and is running on a device with multiple displays, users can move the activity from one display to another. When an app launches an activity, the app can specify which display the activity should run on.