Existing apps in the Amazon Appstore can now run on Windows 11 through the Windows Subsystem for Android™️ (WSA). This means that millions of PC users on Windows 11 can search for Android apps within the Microsoft store and install them as they can with native Windows apps.
In this tutorial, we’re building upon our existing best practices guide to show how to debug Android mobile apps on the Windows Subsystem for Android using the most popular developer environments (IDEs): Visual Studio, Android Studio, and Unity Editor.
Note: There are Windows 11 minimum device requirements to download WSA and properly test your apps.
First, open the Microsoft Store on a Windows 11 device by selecting Start then typing Microsoft Store. If you’re reading this article from a Windows 11 device, click this shortcut: ms-windows-store://home
Inside the Microsoft store, search for Amazon Appstore and install it. This download will include both WSA and Amazon Appstore in the same installation process. Open Amazon Appstore and sign-in with your existing Amazon developer credentials. If you don’t have an account, you can sign up for free.
Once WSA and Amazon Appstore are installed, you can debug Android apps. Follow these steps:
Setting up developer mode for WSA & Android debugging
1. Download and install Android SDK platform tools. Make sure to add the full path of the extracted platform tools to the PATH variable in Windows 11 environment variables: Start > Settings > System > About > Advanced System Settings > Environment Variables
2. Access the WSA settings app: Start > All Apps > Windows Subsystem for AndroidTM.
4. Within the WSA settings, toggle the Advanced Settings > Developer mode option in order to turn on developer mode. Additional developer options are available in Manage developer settings but are not required for these setup steps.
5. Stay in the WSA settings to select System > Files to access the next menu in order to start the WSA emulator in the background and connect via the Android Debug Bridge (adb).
6. To establish a connection to the emulator, open terminal for Windows: Start > All Apps > Terminal then type in adb connect localhost:58526. Since it is the first time setting up WSA, you need to click Allow access on the Windows security dialog, then check the “Always Allow from this computer” option, then click Allow on the subsequent dialog ADB debugging.
Before you go to publish your app for Amazon Appstore, it is important to review the pre-submission checklist and evaluate any memory leaks, performance bottlenecks, or possible app crashes. Each of the IDEs described in this article have a collection of performance analysis tools to provide all the necessary app metrics for troubleshooting and resolving memory issues.
Here is a breakdown of monitoring and profiling tools for each of the IDEs we covered above:
Visual studio offers a range of monitoring tools that are baked into the IDE. Tools such as CPU Usage and Memory Usage are available within the diagnostics tools window of the IDE. Read the docs on profiling tools for Visual Studio to learn more.
Visual Studio Enterprise edition provides access to Xamarin Profiler that can be used to profile mobile apps developed using Xamarin framework. Read the docs to learn more.
Mobile apps developed using Android Studio can use built-in profiling tools to monitor CPU, Memory, Energy, GPU, and Frame rate. Follow the Android docs to learn how to use these profiler tools.
Apps built with Unity editor can use the Unity profiler to analyze gaming assets apart from the standard CPU, Memory, and network diagnostics. In addition, Unity profiler also provides monitoring GPU usage, Frame rate, and Scene management. Read the Unity Profiler docs to learn more.
By following these instructions and our best practices docs, we hope you are able to streamline your Android to Windows 11 development process and quickly identify and fix issues for a smooth publishing process for Amazon Appstore and WSA.