Windows run android emulator

Test on an Android device or emulator

There are several ways to test and debug your Android application using a real device or emulator on your Windows machine. We have outlined a few recommendations in this guide.

Run on a real Android device

To run your app on a real Android device, you will first need to enable your Android device for development. Developer options on Android have been hidden by default since version 4.2 and enabling them can vary based on the Android version.

Enable your device for development

For a device running a recent version of Android 9.0+:

  1. Connect your device to your Windows development machine with a USB cable. You may receive a notification to install a USB driver.
  2. Open the Settings screen on your Android device.
  3. Select About phone.
  4. Scroll to the bottom and tap Build number seven times, until You are now a developer! is visible.
  5. Return to the previous screen, select System.
  6. Select Advanced, scroll to the bottom, and tap Developer options.
  7. In the Developer options window, scroll down to find and enable USB debugging.

For a device running an older version of Android, see Set Up Device for Development.

Run your app on the device

In the Android Studio toolbar, select your app from the run configurations drop-down menu.

From the target device drop-down menu, select the device that you want to run your app on.

Select Run в–·. This will launch the app on your connected device.

Run your app on a virtual Android device using an emulator

The first thing to know about running an Android emulator on your Windows machine is that regardless of your IDE (Android Studio, Visual Studio, etc), emulator performance is vastly improved by enabling virtualization support.

Enable virtualization support

Before creating a virtual device with the Android emulator, it is recommended that you enable virtualization by turning on the Hyper-V and Windows Hypervisor Platform (WHPX) features. This will allow your computer’s processor to significantly improve the execution speed of the emulator.

To run Hyper-V and Windows Hypervisor Platform, your computer must:

  • Have 4GB of memory available
  • Have a 64-bit Intel processor or AMD Ryzen CPU with Second Level Address Translation (SLAT)
  • Be running Windows 10 build 1803+ (Check your build #)
  • Have updated graphics drivers (Device Manager > Display adapters > Update driver)

If your machine doesn’t fit this criteria, you may be able to run Intel HAXM or AMD Hypervisor. For more info, see the article: Hardware acceleration for emulator performance or the Android Studio Emulator documentation.

Verify that your computer hardware and software is compatible with Hyper-V by opening a command prompt and entering the command: systeminfo

In the Windows search box (lower left), enter «windows features». Select Turn Windows features on or off from the search results.

Once the Windows Features list appears, scroll to find Hyper-V (includes both Management Tools and Platform) and Windows Hypervisor Platform, ensure that the box is checked to enable both, then select OK.

Restart your computer when prompted.

Emulator for native development with Android Studio

When building and testing a native Android app, we recommend using Android Studio. Once your app is ready for testing, you can build and run your app by:

Читайте также:  Mediatek mt7610u kali linux

In the Android Studio toolbar, select your app from the run configurations drop-down menu.

From the target device drop-down menu, select the device that you want to run your app on.

Select Run в–·. This will launch the Android Emulator.

Once your app is installed on the emulator device, you can use Apply Changes to deploy certain code and resource changes without building a new APK.

Emulator for cross-platform development with Visual Studio

There are many Android emulator options available for Windows PCs. We recommend using Google’s Android emulator, as it offers access to the latest Android OS images and Google Play services.

Install Android emulator with Visual Studio

If you don’t already have it installed, download Visual Studio 2019. Use the Visual Studio Installer to Modify your workloads and ensure that you have the Mobile development with .NET workload.

Create a new project. Once you’ve set up the Android Emulator, you can use the Android Device Manager to create, duplicate, customize, and launch a variety of Android virtual devices. Launch the Android Device Manager from the Tools menu with: Tools > Android > Android Device Manager.

Once the Android Device Manager opens, select + New to create a new device.

You will need to give the device a name, choose the base device type from a drop-down menu, choose a processor, and OS version, along with several other variables for the virtual device. For more information, Android Device Manager Main Screen.

In the Visual Studio toolbar, choose between Debug (attaches to the application process running inside the emulator after your app starts) or Release mode (disables the debugger). Then choose a virtual device from the device drop-down menu and select the Play button в–· to run your application in the emulator.

How to run Android apps in Windows

When it comes to app selection, few platforms rival Android. Unfortunately, getting apps from your phone or tablet to your Windows PC isn’t as straightforward as simply installing desktop software. To help make the process easier, however, we’ve put together a comprehensive guide on what software and utilities you need to install Android apps on almost any Windows machine. This way, you can enjoy the best Android apps and best Android games on the big screen.

If you’re running a Chromebook, we’ve also put together a dedicated guide on how to install Android apps on Chrome OS.

Bluestacks emulator

The Bluestacks App Player is one of the most popular and robust Android emulators around, allowing you to run 32-bit and 64-bit games and apps for Android 7.1.2 (Nougat) on your Windows desktop.

It’s free to use, and you can easily toggle emulation settings and launch apps using the custom-designed interface. “Layercake” technology uses hardware accelerators to improve the performance of Android games running on Windows-based machines.

If you have a Twitch or similar account and a PC with more than 8GB of RAM, you can even broadcast Android apps and games using the Bluestacks “stream mode” and OBS Studio. However, users may want to enable AMD-V or Intel VT-x within the BIOS for optimal performance, if available.

Bluestacks offers an optional subscription ($4 per month or $40 per year) that enables premium support, disables advertisements, includes wallpapers, and more. It’s also now compatible with the Galaxy Store, allowing you to use and play apps purchased through Samsung’s app store.

Here’s how to install Bluestacks to your computer:

Читайте также:  Как сделать vpn подключение windows

Step 1: Download the installer from the official Bluestacks website.

Step 2: Launch the install application and choose the storage location for the app and data files. Unfortunately, you can’t change the Bluestacks directory — it will install on your boot drive by default.

Step 3: Once Bluestacks installs, launch it and enter your Google and/or Samsung account credentials. You’ll need this info to log in to the Google Play Store and Galaxy Store and access your Android app library.

Dual booting

There’s an alternative to emulation that gives you newer versions of Android, but the setup is a bit more involved. It’s called “dual booting,” and it effectively transforms your Windows computer into an Android device. You’ll gain the option to boot into Android when you switch on your computer, and Android will work just like it does on your smartphone or tablet.

However, getting started is not as simple as installing native Android. Because computer hardware — processors, graphics cards, and hard drives — must be added to Android by a third-party developer, you’ll need to find a custom distribution that supports your machine.

Android-x86

Android-x86 brings Android to x86-based PCs with AMD and Intel processors. What’s interesting about this project is that users can install any flavor of Android, whether it’s the now-stale Donut (v1.6) or the more recent Pie (v9). The project even offers builds of LineageOS (cm-x86) that can run on x86-based processors.

For those seeking a more recent Android build, Android-x86 9.0-r2 was the latest release at the time of this publication. Based on Android-9.0.0_r54, it fixed an audio issue on the Surface 3 and another one regarding booting into UEFI mode. Contributors are currently working on a version based on Android 10, although the project hasn’t released anything new since May 2020.

Though customizations to the Android operating system are minimal, the Android-x86 team did add some meaningful tweaks to give your Android install a desktop-like interface. It comes with features like a new Taskbar launcher and the ability to launch apps in resizable windows rather than just full-screen.

Android-x86 also lets you customize Android to your liking. You can install third-party themes, home screens, and more without having to worry about whether or not they will play nicely together.

To use Android-x86, your PC must have:

  • An AMD or Intel processor.
  • 2GB or more RAM.
  • 4GB or more disk space.
  • An available USB port.

If your PC meets the requirements, you will need these three tools:

  • A blank USB drive.
  • Android-x86 downloaded to your PC
  • UNetbootin downloaded to your PC.

Now let’s get started:

Kevin Parrish/Digital Trends

Step 1: Find and open UNetbootin and click the Three Dots button to the far right of Diskimage.

Step 2: Locate and select the downloaded ISO file.

Step 3: At the bottom next to Type, select USB Drive from the list, and then click OK.

Wait for UNetbootin to copy and install Android-x86 to your flash drive.

Step 4: Reboot your computer. This may require you to hit a specific key to prevent Windows 10 from loading, like ESC or F12. A screen should appear allowing you to select Boot to the Boot Device Selection.

Step 5: Select your flash drive.

Step 6: From the UNetbootin menu, select Install Android-x86 to Hard Disk.

Step 7: Select the partition — or location — to which you want to install Android-x86. The program will ask if you plan to format the disk. If you’re unsure, don’t.

Читайте также:  Linux mysql tar gz

Step 8: Select Yes to install GRUB and then select Yes again.

Step 9: A prompt asks if you want to “make system r/w,” which enables Android-x86 to read and write data to your hard drive. Select Yes.

Step 10: Reboot your computer for the second time. Once installed, use the Google Play Store to install Android apps as you wish.

Microsoft’s Your Phone app allows Android phone owners to send and receive texts from their Windows PC without using their mobile devices. Users can also access their phone’s photos from Windows 10 and see phone-related notifications in the Action Center.

Samsung takes this cool relationship one step further with Link to Windows. This technology now provides two services: Phone Screen and Apps. With the former, you’re essentially streaming a Samsung phone’s screen to an interactive window on your PC. With Apps, you’re streaming individual apps rather than mirroring the phone’s entire screen.

However, all Android apps remain on the Samsung phone. Moreover, this method requires the Windows 10 PC and Samsung Android phone to be on the same local network. Microsoft provides a list of compatible Samsung phones here — not all Samsung phones support Link to Windows.

Finally, this method requires the Windows 10 November 2019 Update (at the very least) to work properly. All Samsung phones must have Android 9 or newer.

Step 1: Open the Your Phone app or download it from the Microsoft Store if it’s not installed.

Step 2: Sign in to your Microsoft Account.

Step 3: Move to the Samsung phone. Swipe down on the Quick Panel and tap Link to Windows. If it doesn’t appear in the Quick Panel, download it from the Google Play Store — it’s typically integrated into newer Samsung phones.

Step 4: If other Microsoft apps are already signed in, you won’t need to do it again on your phone. If not, sign in manually.

Step 5: Allow permissions when prompted.

Step 6: The Samsung phone and Windows 10 should begin synchronizing. When complete, tap the blue Allow button on the Samsung phone’s screen to allow the pairing.

If successful, the Samsung phone will display a switch that’s toggled on — tap it to disconnect at any time. The screen also lists the connected PC’s name and the Microsoft Account login name.

Step 6: With the Your Phone app open in Windows 10, click the Gear (settings) icon in the bottom-left corner.

Step 7: Verify that the Display My Phone Screen option is on.

Step 8: Select the Phone Screen or Apps option on the left to begin.

Surface Duo and Microsoft’s Emulator

The Surface Duo is a high-tech piece of equipment that first came out on September 10, 2020. This dual-screen device is a folding Android smartphone that operates on a Qualcomm Snapdragon 855 SoC.

Microsoft created the Duo SDK Preview, which developers and fans can download, to get ready for the incoming Surface Duo . The preview lets you install an Android emulator, which mimics the look of the dual-screen Duo layout integrated with Android Studio on your computer.

If you feel ready to try out this preview feature, it’s an excellent chance to use the Duo software to run and test Android apps on your Windows computer. If this sounds up your alley, you can download this emulator for free right here . Check it out and see how everything operates and what the layout would look like.

Оцените статью