Microsoft has invited Android developers to build or enhance apps for dual-screen devices, especially the company’s Surface Duo systems.
Following the September 22 introduction of Surface Duo 2, Microsoft issued a bulletin advising developers to use Jetpack Window Manager, currently in a beta stage, to adapt applications for dual-screen, foldable, and large-screen devices.
Jetpack Window Manager provides a standard API to work with foldable devices and includes two important classes: DisplayFeature, which finds disruptions in the continuous flat-screen surface such as hinges or folds, and FoldingFeature, which offers information about the state of the folding part of the device. The FoldingFeature class offers device-specific information that enables a single code base to adapt to different dual-screen and foldable devices, including all Surface Duo models. Jetpack Window Manager APIs automatically provide the correct information for each device.