Dual-Screen Developer Day Recap & SDK Updated!

Hakon Strande

Hello Developers!

This is the third of our weekly Surface Duo SDK devblogs, focused on how developers can make use of dual screen devices to enhance their application’s user experiences.

Developer Day

This week we spent our time interacting with the community both through a live, online Dual-Screen Developer Day event and in a closed industry event called the Microsoft Dual-Screen Software Design Review event here in Redmond. Check out the Dual-Screen Developer Day Keynote video and our Surface Duo Developer Experience session on the Microsoft 365 Virtual Events website: https://developer.microsoft.com/en-us/microsoft-365/virtual-events

We learned a lot from you all during these events and I wanted to share some of the feedback we received and at the same time, encourage you to share your comments and questions in our tech forums: https://aka.ms/SurfaceDuoSDK-Feedback

Here are some of the things we heard from you this week:

  1. “How about one sample that does it all (all current samples combined into a user experience sample)?”
  2. “Would love a sample showing how to deal with orientation changes”
  3. “Please update documentation to explain the connection between mask and rotation better.”
  4. “It would be great to interact programmatically (for test automation) with the device manipulation features of the Duo emulator image”
  5. “For CI/CD systems we would like to download new Surface Duo emulator builds automatically”.

Please keep the feedback coming. We use your suggestions to improve the developer experience.

Surface Duo SDK Update

This week we also updated the Surface Duo SDK sample content. Now all the SDK samples are available for the Kotlin programming language. There are also two new samples, available in both Java and Kotlin repos. These two samples are IntentToSecondScreen and Drag-n-Drop. The former shows how to launch an activity on the second screen and the latter shows how to implement a source and target drag-and-drop experience, complete with a drag preview (DropShadow) element.

IntentToSecondScreen sample:

This sample shows how to use just two lines of code to bring the dual screen device to life for your customers:

A screenshot of a social media post Description automatically generated

Image 1: Android Studio with the IntentToSecondScreen sample code.

Drag-and-Drop sample:

This sample shows how to create a source and target drag-and-drop solution.

A screenshot of text Description automatically generated

Image 2: View of portions of the Drag-and-Drop source sample code.

A screenshot of a social media post Description automatically generated

Image 3: View of portions of the Drag-and-Drop destination sample code.

Helpful links:

The links to our updated samples:

Links to other relevant content:

As always, we would love to hear from you. Please reach out using our feedback forum if you have ideas or comments. Let us know how we can help you be more productive when developing for large, foldable and dual screen devices, ask questions, make suggestions, or upvote other suggestions.

Håkon Strande – Surface Duo Developer Experience Program Manager

0 comments

Discussion is closed.

Feedback usabilla icon