{"id":999,"date":"2020-10-22T11:53:00","date_gmt":"2020-10-22T18:53:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/surface-duo\/?p=999"},"modified":"2020-10-22T11:53:00","modified_gmt":"2020-10-22T18:53:00","slug":"updated-emulator-posture-support","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/surface-duo\/updated-emulator-posture-support\/","title":{"rendered":"Updated Microsoft Surface Duo emulator with posture support"},"content":{"rendered":"<p>\n  Hello Surface Duo developers!\n<\/p>\n<p>\n  I\u2019m excited to announce our latest Surface Duo Android emulator update, now with an easier way to simulate and visualize different device postures. \n<\/p>\n<p>\n  You can download the latest version from the <a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=100847\">Microsoft Download Center<\/a> (follow <a href=\"https:\/\/docs.microsoft.com\/dual-screen\/android\/get-surface-duo-emulator\/?WT.mc_id=docs-surfaceduoblog-emmihala\">these instructions<\/a>). The posture updates work with the Google emulator version 30.2.* or newer, which comes with <a href=\"https:\/\/developer.android.com\/studio\/\">Android Studio 4.1<\/a> (currently the latest stable release).\n<\/p>\n<h2>New features and fixes<\/h2>\n<p>\n  This emulator release includes the following updates:\n<\/p>\n<ul>\n<li>\n    Updating the hinge angle also affects the emulator\u2019s posture.\n  <\/li>\n<li>\n    3D device posture view in the <strong>Extended controls<\/strong> window.\n  <\/li>\n<li>\n    Rotation works &#8211; fixes this <a href=\"https:\/\/docs.microsoft.com\/dual-screen\/android\/get-surface-duo-emulator?WT.mc_id=docs-surfaceduoblog-emmihala#contents-do-not-rotate-with-the-emulator\">troubleshooting item<\/a> (don\u2019t forget to enable Auto-rotate from Android\u2019s \u201cquick settings\u201d menu).\n  <\/li>\n<li>\n    Surface Duo-related updates since the last emulator release.\n  <\/li>\n<li>\n    Added wipe-data start option.\n  <\/li>\n<\/ul>\n<h2>Hinge angle and posture buttons<\/h2>\n<p>\n  The posture buttons are now available on the emulator toolbar \u2013 long-click on the current posture to switch to a different posture:\n<\/p>\n<p>\n  <img decoding=\"async\" width=\"79\" height=\"225\" src=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/10\/word-image-16.png\" class=\"wp-image-1000\" \/>\n<\/p>\n<p><em>Figure 1: Surface Duo emulator toolbar<\/em>\n<\/p>\n<p>\n  In the <strong>Extended controls<\/strong> window you can also choose a posture (closed, flipped, half-open, open, tent), or select a specific hinge angle (0-360 degrees):\n<\/p>\n<p>\n  <img decoding=\"async\" width=\"448\" height=\"274\" src=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/10\/word-image-17.png\" class=\"wp-image-1001\" srcset=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/10\/word-image-17.png 448w, https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/10\/word-image-17-300x183.png 300w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/>\n<\/p>\n<p><em>Figure 2: Surface Duo emulator extended controls window<\/em>\n<\/p>\n<h2>Device pose<\/h2>\n<p>\n  This screencast shows the <a href=\"https:\/\/devblogs.microsoft.com\/surface-duo\/hinge-angle-on-surface-duo\/\">Hinge angle sample<\/a> running on the simulator while adjusting the posture:\n<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/10\/emulator-fold-animation.gif\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-content\/uploads\/sites\/53\/2020\/10\/emulator-fold-animation.gif\" alt=\"Animation of 3D emulator posture adjustment\" width=\"800\" height=\"637\" class=\"alignnone size-full wp-image-1002\" \/><\/a><br\/><em>Figure 3: Screencast of hinge angle sample running on Surface Duo emulator demonstrating changes in device posture<\/em>\n<\/p>\n<p>\n  When the hinge angle exceeds 235 degrees, the emulator will switch to single-screen (as it would on a real device) and you can double-tap to switch the active screen.\n<\/p>\n<h2>Known issues<\/h2>\n<p>\n  Current posture mapping is slightly inexact. That\u2019s why you might notice that when using the <strong>Open<\/strong> posture, the emulator sets the hinge angle to 240 degrees instead of the expected 180. This is due to the way in which the default angle for each posture is calculated internally and it is definitely something we\u2019re looking to fix in a future release.\n<\/p>\n<p>\n  Using the hinge angle slider should, in all cases, get the Surface Duo emulator OS to update its internal posture representation. This is true even for sub-postures that are not currently available as \u2018quick jumps\u2019 from the Posture button UI. For example, try setting the hinge angle to something less than 75 degrees while the screen is off and check out Peek mode.\n<\/p>\n<h2>Resources and feedback<\/h2>\n<p>Visit the <a href=\"https:\/\/docs.microsoft.com\/en-us\/dual-screen\/android\/emulator\/release-notes\/?WT.mc_id=docs-surfaceduoblog-emmihala\">release notes<\/a> for information about this and future updates.<\/p>\n<p>\nThe Surface Duo Developer Experience Team would love to hear your thoughts on the emulator, the SDK, which tools are your favorite, and what helpers or controls you\u2019d like us to work on next. Please reach out on the <a href=\"https:\/\/techcommunity.microsoft.com\/t5\/surface-duo-sdk\/bd-p\/SurfaceDuoSDK\">feedback forum<\/a> or via <a href=\"https:\/\/twitter.com\/surfaceduodev\">Twitter<\/a> or <a href=\"https:\/\/github.com\/microsoft\/surface-duo-sdk\">GitHub<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello Surface Duo developers! I\u2019m excited to announce our latest Surface Duo Android emulator update, now with an easier way to simulate and visualize different device postures. You can download the latest version from the Microsoft Download Center (follow these instructions). The posture updates work with the Google emulator version 30.2.* or newer, which comes [&hellip;]<\/p>\n","protected":false},"author":43198,"featured_media":1006,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[31,702],"class_list":["post-999","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-surface-duo-sdk","tag-dual-screen-development","tag-emulator"],"acf":[],"blog_post_summary":"<p>Hello Surface Duo developers! I\u2019m excited to announce our latest Surface Duo Android emulator update, now with an easier way to simulate and visualize different device postures. You can download the latest version from the Microsoft Download Center (follow these instructions). The posture updates work with the Google emulator version 30.2.* or newer, which comes [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/posts\/999","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\/43198"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/comments?post=999"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/posts\/999\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/media\/1006"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/media?parent=999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/categories?post=999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/surface-duo\/wp-json\/wp\/v2\/tags?post=999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}