{"id":74,"date":"2020-01-31T15:41:51","date_gmt":"2020-01-31T23:41:51","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/surface-duo\/?p=74"},"modified":"2020-03-05T14:30:08","modified_gmt":"2020-03-05T22:30:08","slug":"the-surface-duo-sdk-preview-for-developers-is-available","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/surface-duo\/the-surface-duo-sdk-preview-for-developers-is-available\/","title":{"rendered":"The Surface Duo SDK Preview for developers is available"},"content":{"rendered":"<p>The Surface Duo SDK Preview for developers is available<\/p>\n<p>Hello awesome Android developers!<\/p>\n<p>This post is the first in a series designed to keep us connected with you as you build new app experiences using the Surface Duo Preview SDK for developers.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-75\" src=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/microsoft-surface-duo.png\" alt=\"Microsoft Surface Duo \" width=\"1042\" height=\"586\" srcset=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/microsoft-surface-duo.png 1432w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/microsoft-surface-duo-300x169.png 300w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/microsoft-surface-duo-1024x576.png 1024w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/microsoft-surface-duo-768x432.png 768w\" sizes=\"(max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p>Figure 1: Microsoft Surface Duo<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Surface Duo Developer Experience Team<\/strong><\/p>\n<p>We are the Developer Experience Team and we\u2019re responsible for delivering the Surface Duo SDK, tools, emulator images, documentation, and samples.<\/p>\n<p>Our intent is to have an open channel of communication with you to frequently update you on the program, share development tips and considerations, discuss aspects of developing for dual-screen in general and Surface Duo specifically, and answer any questions you might have.<\/p>\n<p>Feel free to <a href=\"https:\/\/aka.ms\/SurfaceDuoDevelopers\">comment<\/a>, send us questions, and reach out with suggestions, concerns, or any other development-related topics for Surface Duo SDK.<\/p>\n<p>Let\u2019s start with the Surface Duo developer preview:<\/p>\n<p><strong>Dual-screen preview SDKs announced<\/strong><\/p>\n<p>On January 22<sup>nd<\/sup> we <a href=\"https:\/\/blogs.windows.com\/windowsdeveloper\/2020\/01\/22\/announcing-dual-screen-preview-sdks-and-microsoft-365-developer-day\/\">announced<\/a> the availability of Surface Duo Preview SDK for developers.<\/p>\n<p>The package includes:<\/p>\n<ul>\n<li><strong>Native Java APIs<\/strong> to support dual-screen development for the Surface Duo device, including the DisplayMask API, Hinge Angle Sensor, and new device capabilities.<\/li>\n<li>An <strong>Android Emulator with a preview Surface Duo image<\/strong> that is integrated into Android Studio. You can test your app without a Surface Duo device. The emulator simulates postures, gestures, hinge angle; mimics the seam between the two screens; and more. We\u2019ll continue to add functionality over time.<\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/dual-screen\/\">Documentation<\/a> for dual-screen app development.<\/li>\n<li>Includes a set of Java <a href=\"https:\/\/github.com\/microsoft\/surface-duo-sdk-samples\"><strong>samples<\/strong> in GitHub<\/a>.<\/li>\n<li>Check out our Xamarin.Form support in the <a href=\"https:\/\/devblogs.microsoft.com\/xamarin\/xamarin-goes-dual-screen\/\">Xamarin Blog<\/a>.<\/li>\n<\/ul>\n<p>We want to meet developers where they\u2019re at to help as they develop for Duo\u2014we\u2019re here to support Android developers on Mac, Linux, and Windows.<\/p>\n<p>Feel free to use your favorite IDE. We\u2019ve been using Android Studio, Visual Studio and Visual Studio Code. Let us know how you develop your apps!<\/p>\n<p>Our first preview includes Native Java based API and Xamarin support, and future we will support additional platforms<\/p>\n<p>You can follow the instruction below on how to get the package and you can also find them on <a href=\"https:\/\/docs.microsoft.com\/en-us\/dual-screen\/android\/get-duo-sdk?tabs=java\">Surface Duo Development Docs<\/a><\/p>\n<p><strong>Using the Emulator<\/strong><\/p>\n<p>We\u2019ve partnered with Google to include the Surface Duo image natively in the Android Studio and Android Emulator using QEMU. Your experience using the emulator will be similar to what you\u2019re used to with other Android Development tools and can be done directly within Android Studio.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-76\" src=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/android-studio-integrated-directly-with-the-surfac.png\" alt=\"Android Studio Integrated directly with the Surface Duo Image \" width=\"1074\" height=\"573\" srcset=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/android-studio-integrated-directly-with-the-surfac.png 1924w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/android-studio-integrated-directly-with-the-surfac-300x160.png 300w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/android-studio-integrated-directly-with-the-surfac-1024x547.png 1024w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/android-studio-integrated-directly-with-the-surfac-768x410.png 768w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/android-studio-integrated-directly-with-the-surfac-1536x820.png 1536w\" sizes=\"(max-width: 1074px) 100vw, 1074px\" \/><\/p>\n<p>Figure 2: Android Studio Integrated directly with the Surface Duo Image<\/p>\n<p>The Surface Duo Image includes a dual-screen layout, a seam between them, and has the look and feel of a real device following the same aspect ratio.<\/p>\n<p><img decoding=\"async\" width=\"777\" height=\"502\" class=\"wp-image-77\" src=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/the-android-emulator-with-a-preview-surface-duo-im.png\" alt=\"The Android Emulator with a preview Surface Duo image \" srcset=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/the-android-emulator-with-a-preview-surface-duo-im.png 777w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/the-android-emulator-with-a-preview-surface-duo-im-300x194.png 300w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/the-android-emulator-with-a-preview-surface-duo-im-768x496.png 768w\" sizes=\"(max-width: 777px) 100vw, 777px\" \/><\/p>\n<p>Figure 3: The Android Emulator with a preview Surface Duo image<\/p>\n<p>&nbsp;<\/p>\n<p>Our APIs are built into this image so you can try them out with your own app or with one of our samples.<\/p>\n<p>BE sure to try out the new gestures we\u2019ve added. They can help you span your app to both screens, or to move it from one screen to the other<\/p>\n<p><img decoding=\"async\" class=\"wp-image-78\" src=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/span-your-app-to-both-screens.png\" alt=\"Span your app to both screens\" width=\"1265\" height=\"291\" srcset=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/span-your-app-to-both-screens.png 1452w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/span-your-app-to-both-screens-300x69.png 300w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/span-your-app-to-both-screens-1024x236.png 1024w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/01\/span-your-app-to-both-screens-768x177.png 768w\" sizes=\"(max-width: 1265px) 100vw, 1265px\" \/><\/p>\n<p>Figure 4: Span your app to both screens<\/p>\n<p>&nbsp;<\/p>\n<p>Read our full <a href=\"https:\/\/docs.microsoft.com\/en-us\/dual-screen\/android\/use-emulator?tabs=windows\">documentation<\/a> on how to use the emulator and test your app, and be sure to check out <a href=\"https:\/\/github.com\/microsoft\/surface-duo-sdk-samples\">our samples<\/a> for dual-screen patterns to be added to your app.<\/p>\n<p><strong>Give us feedback<\/strong><\/p>\n<p>We would love to hear from you on the usage of the SDK and emulator.<\/p>\n<p>Send your <a href=\"https:\/\/aka.ms\/SurfaceDuoDevelopers\">feedback<\/a> and let us know how we can help you be more productive, or any other suggestions you might have.<\/p>\n<p>Don\u2019t forget to check us out Tuesday, February 11th at 8:30 AM PDT at the <a href=\"https:\/\/aka.ms\/m365devday\">Microsoft 365 Developer Day for Dual-Screen Experiences<\/a>.<\/p>\n<p>And as always, feel free to Direct Message me on <a href=\"https:\/\/twitter.com\/gmerin\">Twitter<\/a>, <a href=\"https:\/\/github.com\/guymerin\">GitHub<\/a> or <a href=\"mailto:guym@microsoft.com\">Email<\/a>.<\/p>\n<p>Thank you,<\/p>\n<p>Guy Merin, Development Manager, Surface Duo Developer Experience Team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Surface Duo SDK Preview for developers is available Hello awesome Android developers! This post is the first in a series designed to keep us connected with you as you build new app experiences using the Surface Duo Preview SDK for developers. Figure 1: Microsoft Surface Duo &nbsp; Surface Duo Developer Experience Team We are [&hellip;]<\/p>\n","protected":false},"author":17398,"featured_media":85,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[31,29,30],"class_list":["post-74","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-surface-duo-sdk","tag-dual-screen-development","tag-surfaceduo","tag-surfaceduo-sdk"],"acf":[],"blog_post_summary":"<p>The Surface Duo SDK Preview for developers is available Hello awesome Android developers! This post is the first in a series designed to keep us connected with you as you build new app experiences using the Surface Duo Preview SDK for developers. Figure 1: Microsoft Surface Duo &nbsp; Surface Duo Developer Experience Team We are [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/users\/17398"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/media\/85"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}