On-Prem

Personal Tech

Don't mention the seam! Microsoft releases Surface Duo Android SDK, more on Windows 10X

New SDK shows both potential and challenge of the new Surface devices


Microsoft has released a preview SDK for its forthcoming Android Surface Duo device, and has confirmed a Developer Day on February 11th when the SDK for the Windows dual-screen Surface Neo will be previewed.

The dual-screen tablet, running a new version of Windows called 10X, and Surface Duo, running Android, were unveiled back in October 2019 – but details on the developer story have so far been sketchy.

The mist has now lifted a little. Microsoft's Kevin Gallo, corporate veep, cleared a few things up as the preview SDK for Surface Duo was released; he also added that the SDK and emulator for Windows 10X will be available on February 11.

Microsoft's plans are ambitious. While dual-screen mobile devices (both for Windows and Android) are not completely new, they are not mainstream, and the company has to convince the world of the desirability of this form factor. Further, Windows developers who have endured constant mind-changing from Microsoft in setting out its application platform strategy are now being asked to embrace Android as well as Windows.

A sign of the novelty of the company's plans is that it wants to create "new web standards … to enable dual-screen experiences for websites and PWAs [Progressive Web Applications] on both Android and Windows 10X."

These proposals include CSS Primitives for building dual layouts, with a new "spanning" media query to detect browser windows that span multiple displays, and new "fold" environment variables to enable developers to calculate screen segment sizes based on the fold size. There is also a proposed JavaScript API for handling screen segments. An example is where you might have a map on one screen, and a list of locations on the other. If the user then resized the browser to occupy only one display, the location list could move under the map.

The proposed CSS "spanning" media query will let developers properly handle multiple displays

Microsoft will no doubt implement these proposals in Edge, but that does not guarantee that other browsers will follow or that the standards will be approved.

Writing separate applications for Windows and Android, both with proper support for dual screens, sounds like a big ask. Gallo highlights three solutions for cross-platform development. One is to create web applications or PWAs. The second is React Native; and third is Xamarin, a .NET solution.

David Ortinau, principal program manager on the Xamarin team, has posted separately about developing for the new devices. Both Gallo and Ortinau mention five "recommended patterns" for dual screen applications. These are Extended Canvas (treating it as one large screen), Master-Detail, paged, Dual View – two versions of the same content side by side, such as a text description and a map or visual portrayal – and Companion Pane, such as an image on one side and tools for editing it on the other.

Recommended patterns for dual screen apps

A key issue is how to manage the seam, and there are suggestions on this topic in Microsoft's documentation. The seam, or hinge, is an area of the screen that appears to the developer as if it is blanked out, even though there is no actual display there. It is unfortunate that it works this way. Dialog spanning two screens? Bad idea, says the guide.

Developers keen to get started can do so immediately with the preview SDK for Android. Installation on Windows puts a handy Surface Duo emulator link on the desktop, but in our case it did not work. We needed to fix a script that makes assumptions about the location of the Android SDK. Once done, you can try Surface Duo.

The Surface Duo emulator - we found it awkward but it is a preview

A quick play with the Android SDK and emulator soon showed us the kinds of things that can go wrong. The emulator was sluggish for us, and while Microsoft's sample apps ran successfully, we had difficulty positioning them correctly on the emulator. In addition, we saw what can go awry with the seam problem, with a virtual keyboard popping up that had a prompt with missing letters.

The wrong way to span two displays - note the missing letters

Dual screens can be great; many desktop PC users find multiple displays more convenient and productive than just one, and in principle they have potential on mobile devices tool, and without the technical challenges (and reliability concerns) of folding screens.

The challenge for Microsoft will be to enthuse developers sufficiently that there are strong dual-screen apps available for the launch of these devices, and to do that both for Windows 10X and for Surface Duo. ®

Send us news
35 Comments

Microsoft facing multibillion legal claim over how it sells software

Stop us if you've heard this one before

Microsoft gets twitchy over talk of Europe's tech independence

Brad Smith commits org to facing off with US govt in court to protect them

Apple patched one first, but Microsoft’s blasted five exploited flaws this Pa-Tu

Plus: All the fun and frolic of fixes from Adobe, SAP, Ivanti

Microsoft moved the goalposts once. Will Windows 12 bring another shift?

Windows 11's hardware requirements: Sales ploy or security play?

Microsoft wants us to believe AI will crack practical fusion power, driving future AI

This BS ends at some point, right?

Microsoft burnishes green cred by paying Swedes to burn biomass and bury CO<sub>2</sub>

Schemes like this are just a license to pollute for tech giants, or so critics say

Microsoft boots 3% of staff in latest cull, middle managers first in line

Redmond talks up new technologies, capabilities for productivity ... just don’t call it AI

Microsoft set to pull the plug on Bing Search APIs in favor of AI alternative

Devs told to swap raw results for LLM-generated summaries as August shutdown looms

Microsoft updates the Windows 11 Start Menu

Plus it is solving the 'I can't find the settings' problem with AI. That's what you wanted, right?

Türkiye-linked spy crew exploited a messaging app zero-day to snoop on Kurdish army in Iraq

'MarbledDust' gang has honed the skills it uses to assist Ankara

Culture comes first in cybersecurity. That puts cybersecurity on the front line in the culture wars

'Trust us, we're from Trumpland' may not help Microsoft as much as it hopes

Microsoft will let partners get creative with pay-when-you-want SaaS plans

A few million here, a few million there, pretty soon you're talking real money