Craig Dunn

Principal SW Engineer, Surface Duo Developer Experience

Craig works on the Surface Duo Developer Experience team, where he enjoys writing cross-platform code for Android using a variety of tools including the web, React Native, Flutter, Unity, and Xamarin.

Post by this author

New Android pen and ink control preview

Hello Android developers, In a previous post, we shared code to handle pen events including pressure, orientation, and button presses on the pen. Today’s post introduces a preview of a new pen and inking control that you can easily add to your Android apps to get pen (and touch) support without a lot of custom code. (image...

Microsoft Surface Duo coming to new markets in 2021

Hello Android developers, Last month, Microsoft announced that early in 2021 the Surface Duo will be offered in Canada, United Kingdom, France, and Germany! We are excited to get Surface Duo into the hands of new customers in these new markets, and also to welcome developers in those countries to our community. To celebrate, ...

Build dual-screen Cordova apps for Microsoft Surface Duo

Hello hybrid app developers, This week I’m happy to share an example plugin for use with Cordova that will help to enhance your hybrid apps for dual-screens. The plugin includes DisplayMask.jar to detect the Surface Duo and return information about the masked hinge area when the app is spanned, and exposes it in JavaScript for ...

Build a dual-screen custom layout with Jetpack Window Manager

Hello Android developers, The Microsoft Surface Duo SDK offers a variety of custom controls to help enhance your dual-screen apps, from layouts, tabs, and navigation controls for Kotlin and Java developers to the TwoPaneView for Xamarin, React Native, and Uno Platform developers. However, you might have an application-specific ...

Developing for Microsoft Surface Duo accessories

Hello Surface Duo developers, Microsoft recently announced new Surface devices and accessories, so this week we’re looking at some of the accessories that work with Surface Duo and how you can accommodate them in your apps. Microsoft Surface Pens The Surface Slim Pen and Surface Pen both work great with the Surface Duo, ...

Launch your dual-screen enhanced website today with Microsoft Edge Origin Trials

Hello dual-screen web developers! Earlier this month, we shared details on how you can build dual-screen web apps using the web APIs built-in to Microsoft Edge and Chrome. The Microsoft Edge team followed up with a more detailed explanation of the CSS and JavaScript APIs. These APIs are still in preview and require you to enable ...

Build and test dual-screen web apps

Hello dual-screen web developers! In a previous blog post, we talked about the dual-screen CSS primitives and the API, and how they could be tested with polyfill extensions. Now those features are built-in to Microsoft Edge and Chrome™ browser canary builds, ready for developers to begin building dual-screen web apps.In this ...

Microsoft Surface Duo developer training now on Microsoft Learn

Hello Xamarin developers, This week we have added a new module to the Customize and add advanced features to Xamarin.Forms apps learning path on Microsoft Learn to help developers build apps for Surface Duo. Learn how to build apps for Surface Duo The new module is called Build dual-screen Xamarin.Forms apps by using ...

Dual-screen devices love widgets

Hello Android developers! In an earlier post, we talked about the steps to bring your app to Microsoft Surface Duo. One great approach to get ready for dual-screen devices like the Surface Duo is to implement Android features that work well on two screens, like app widgets. Widgets are particularly great for dual-screens because ...

Dual-screen web experiences preview

In previous posts, we’ve talked about building Android apps for Microsoft Surface Duo using Kotlin & Java, C# with Xamarin, React Native, Unity, and Flutter. Microsoft is also working hard to bring new capabilities to the web so that websites and embedded web experiences can also adapt to the Surface Duo and other dual-screen devices...