If you have any questions, or would like to tell us about your apps, use the feedback forum or message us on Twitter please join us for our dual-screen developer livestream at 11am (Pacific time) each Friday – mark it in your calendar and check out the archives on YouTube.Step 5: Duo will send a verification code in a one-time SMS message to the phone number that you have entered in Step 4. The Surface Duo emulator is available for specifically testing your dual-screen layout adaptations. It also does not include Google Play Services, so you should continue to use Android emulators and real devices to test your apps. You can use adb devices to check if the Windows Subsystem for Android has been started.Īs mentioned above, WSA is only available in the US at this time. Just remember to connect via ADB to ensure the subsystem is ready to be activated. Using Windows Subsystem for Android is a convenient way to visualize your app layout in different screen sizes and aspect ratios, and to see how our layout controls adapt to both Surface Duo and other screen sizes, such as the Jetpack Compose TwoPaneLayout, the Xamarin TwoPaneView, and the Flutter TwoPane widget.īecause Windows Subsystem for Android is configured for testing via ADB, it can be used for testing from any Android developer tooling, including Android Studio, Visual Studio, VS Code, and other integrated development environments. ![]() This video shows resizing an Android app window, and watching the layout change according to the size classes defined:įigure 1: resizing the window triggers different size classes and layouts (animation) Test windows size classes and “two pane” layout controls ![]() Using the Jetpack Window Manager testing artifact APIs to add a virtual fold that you can test your layouts with. Testing many different screen sizes and orientations easily, just by dragging the window edge. WSA can be useful for a number of different scenarios when optimizing for dual-screen, foldable, and large screen devices: You should now see a new deployment target in Android Studio that you can use to run and debug your Android app on Windows:ĭevelop with Windows Subsystem for Android Open a command prompt and use ADB to connect to WSA using the IP and port shown, for example: adb connect 127.0.0.1:58526 The screen will update with a local IP address to connect to via ADB: Either open an Android app from the Start menu or just click Manage developer settings which will start the Android Settings app. Then in the Developer tab turn Developer mode on: This is optional, and you can always switch back to As needed if you don’t plan to use the subsystem frequently. Switch Subsystem resources to Continuous: Open the Windows Subsystem for Android Settings from the Windows Start menu: Install the Windows Subsystem for Android with Amazon Appstore from the Microsoft Store.Note that WSA is currently only available in the United States.įollow these instructions to use the Windows Subsystem for Android: You can read more about Windows Subsystem for Android in the documentation. ![]() WSA won’t replace other methods of testing, but it can be a useful addition to physical devices and the Surface Duo emulator. Today’s post explains how to install the Windows Subsystem for Android and some of the ways it can be useful for developers. We recently had a query via social media about how Windows Subsystem for Android (WSA) might be relevant for Microsoft Surface Duo developers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |