Visual Studio Emulator for Android is Microsoft's official release of the standalone Android simulator, which makes it easier for Android app developers to write Android apps in Visual Studio, which is said to be Visual Studio Emulator for Android simulator performance is even faster than the Google home, then win10 installation simulator How to use, the following small series to bring you Win10 Android Simulator visual Studio Emulator for Android Use tutorial.
Win10 Android Simulator Visual Studio Emulator for Android official latest version: http://www.cr173.com/soft/146314.html
First, turn on Hyper-V virtualization (the ignored that has been turned on)
① start or shut down Windows features, check Control Panel, uninstall program,->hyper-v-> OK
After downloading is a 40M vs_emulatorsetup.exe file, does not include an Android emulator image file, the installation will default online download API (Andorid 4.4) X86 image, subsequent you can also download the other version of the API XX, Also, Visual Studio Emulator for Android is not dependent on Visual Studio, meaning it can be installed separately, and Android Studio uses ADB as a bridge to connect to Visual Studio Emulator for Android.
Installation steps I won't list it, remember to reboot after installation (it needs to add itself to the Administrators group of Hyper-V administrators).
After the installation restarts, open Visual Studio Emulator for Android as follows:
If you launch the emulator, it will automatically create the corresponding x86 Android virtual machine in Hyper-V, the author of the following:
2. Set Andorid Studio so that it can use these emulators
Open the Target Device node of the Android studio> Run > Edit configurations > Defaults/android application/general tab, tick Sh OW chooser dialog and use same device for the future launches. remember not to forget to apply and OK.
3. Add the Launch Simulator shortcut button for Android Studio
Although it is possible to start the emulator in the Manager window of Visual Studio Emulator for Android, it is cumbersome to open it every time, so we add a startup Visual Studio for Android Studio Emulator for Android shortcut button.
3.1 Configuring external Tools
Open File > Settings > External Tools > Add:
Name: Write casually, convenient for you to recognize it, the author is VS Emulator (4.4 API 19).
Program: Fill in the absolute path of emulatoecmd.exe in the visual Studio Emulator for Android installation directory, which is used to start the emulator. The author is C:\Program Files (x86) \microsoft Emulator Manager\1.0\emulatorcmd.exe.
Parameters: Add the parameters of the boot emulator,/sku:android is the description to open the Android emulator,/ID: The following GUID is the emulator's unique number, the total meaning is to specify which Android emulator to start. The ID can be obtained by emulatorcmd.exe/sku:android List/type:device,
Working directory: Specifies the working directory, which should be freely filled out. The author is $projectfiledir$.
3.2 Add button to toolbar
Right-click in the toolbar blank and select Customize Menus and Toolbars. Then navigate to main Toolbar > Add after > Find External tool > VS Emulator (4.4 API 19) in the popup panel and press OK.
Then click on our newly added button to launch the Android emulator.
4. Add the Contect Emulator shortcut button for Android Studio
The third section of the button just launches the emulator, but Andorid Studio is unable to connect to the emulator, where it is necessary to use the ADB command to connect to the emulator that was just started.
4.1 Configuring external Tools
Also add a shortcut button, the same steps as the third one, except that the parameters are different, here I just list the parameters:
Name: Write casually, convenient for you to recognize it, the author is the ADB Connect (VS Emulator).
Program: Fill in the absolute path of Adb.exe, the author is D:\_android\sdk\platform-tools\adb.exe.
Parameters: Add adb.exe parameters, connect ip:5555; The author is 192.168.2.233:5555. IP can be viewed in WiFi by opening the emulator, or in the network in the simulator settings
Working directory: Specifies the working directory, which should be freely filled out. The author is $projectfiledir$.
4.2 Add button to toolbar
Step is the same as 3.2, this is no longer explained. Put a picture on it:
5. Debug Android App with Visual Studio Emulator for Android
Press the Run button (the green arrow ... ), pop-up Select the Android Device Selection box:
OK, it's done.
6. Further improvement
Before each commissioning, you have to start the emulator button, such as the simulator start and then click the Contect Simulator button, then can point run debugging,, good cumbersome.
Let's configure the command to execute before run and have the Run button do all three things!
Open the Beforelaunch node of the Run > Edit configurations > Defaults/android application/emulator tab and put the two External we just created OL add here, remember not to forget to click Apply and OK, the order is as follows:
This is the use of Win10 Android simulator introduced, if you need to be able to download the use of Oh, I hope that useful to everyone.
Win10 Android Simulator Visual Studio Emulator for Android usage profile (GO)