The newest Beta 2 for the upcoming Android 15 release introduces desktop windowing for tablets as a developer preview. The brand new function makes it doable to handle “freeform home windows” that customers can create to show a number of apps and resize or transfer round equally to what they’d do on a desktop laptop.
Desktop windowing on Android tablets creates new alternatives in your apps, notably round productiveness and multitasking. The likelihood to resize and reposition a number of app home windows permits customers to simply evaluate paperwork, reference info whereas composing emails, and multitask effectively.
The desktop windowing function features a refreshed System UI and new APIs for builders that make it doable to run a number of apps side-by-side concurrently, with every app contained in its personal window. Equally to desktop UIs, app home windows embody an header bar to attenuate, maximize, and transfer them. Apps also can customise the header bar content material, for instance by displaying tabs, buttons, a dropdown menu, and so forth.
To higher handle all of the home windows a person creates, the System UI gives a set Taskbar displaying working apps in addition to shortcuts to rapidly launch apps which might be used extra typically. Customers also can rapidly and simply change between full-size mode, Android’s default the place every app is displayed fullscreen, and destop windowing mode.
For builders, making their apps able to benefit from desktop windowing means implementing format optimizations to adapt to different screen sizes and system configurations. This requirement corresponds to what Google labels Tier 2 support for large screens, which is much less demanding than the highest tier, Tier 1, the place apps are particularly designed for various type components, together with tablets, foldables, and ChromeOS. In addition to being responsive or adaptive, Tier 2 apps should additionally help completely different enter units, resembling keyboard, mouse, and trackpad.
For Tier 3 apps, which run full display, builders might want to implement help for window size classes to adapt format, content material, and interplay to completely different home windows dimensions and ensure they persist format configuration change throughout periods.
Along with this, freeform home windows naturally result in run a number of apps concurrently, says Google, in order that builders ought to make their apps prepared for drag and drop and keep away from requiring unique entry to assets like digicam and microphone, which is also utilized by different concurrent apps.
A brand new risk made doable by desktop windowing is working a number of cases of the identical app in separate home windows, e.g., facet by facet. If an app helps this risk, it will probably set the multi instance property for the System UI to let customers launch it a number of instances.
Lastly, apps appropriate with desktop windowing needs to be conscious that the window header bar is at all times proven and app content material needs to be lay out taking into account its coordinates so it doesn’t get obscured.
As talked about, desktop windowing is a part of the Android 15 QPR1 Beta 2 launch and will be enabled by choosing the “Allow freeform home windows” possibility in “Developer choices”.
