UPDATE : Version 1.4 opens the Emulator Manager Directly.
UPDATE : Version 1.3 supports the new Android Emulator SDK.
Introduction
As many of us know, Visual Studio 2015 comes with an android emulator. (Visual Studio Emulator for Android). This emulator works on hyper-v and needs minimal amount of time to launch. For those of developing cross platform applications on Visual Studio, this is like a dream come true.
Why Android Emulator for Visual Studio?
Before this release, developers were either using the Genymotion android emulator or the standard Intel (HAXM) emulators that comes with the android SDK (Xamarin notes on emulators). The standard emulator was sufficient enough for smaller projects, however the execution time and the launch was quite painful and unproductive. Genymotion’s emulator works quite fast and efficient, however it uses Virtual box for emulation. This means if you want to develop for Windows Phone and Android on the same machine, you have to disable Hyper-V for android emulation, and enable it back again for Windows Phone emulation.
Finally, the Visual Studio android emulator completely solves this problem. It is fast and it does not use that much resources. Launch time is comparable to Genymotion and supports Api Level 19 on phone and tablet versions.
Using Visual Studio 2013
After installing Visual Studio 2015 and the android emulator, for those of you who is not ready to give up Visual Studio 2013 for various reasons, Android Emulator can be used with Visual Studio 2013 (Update 4). In order to use the emulator, you have to launch it somehow (either using command line, or launching an android project from Visual Studio 2015), and then the emulator will appear as a choice on the debug button on the VS 2013.
In order to decrease this hassle, I wrote a small VS extension which launches the emulator with the default or desired memory (default is 512MB) and resolution (default is 720×1280).
Installation
The visual studio extension can be downloaded from the Visual Studio Extensions Gallery or using the extension manager on visual studio.
Usage Information
After the extension is installed, in the tool bars menu (when you right click on the tool bars section) on visual studio, you will notice the new toolbar item “Visual Studio Android Tools”. If you select this item, it will add two tool bar buttons for controlling the android emulator.
With the settings button, you can select the resolution and the memory you want to use for the emulator.
And with the first button you can launch the emulator with the desired settings.
Hope it helps someone out there.
Happy coding everyone,
Pingback: Xamarin Link Roundup – 2 Mar 2015 — Kym Phillpotts
Is it possible to just copy the vm images from a 2015 installation? I don’t want to install everything just to get the images.
LikeLike
ahm… I think you also would need the XDE, since they are using the new XDE as a shell for the android emulator as well. (There are some changes between the old one that was released for Android Emulator Preview and the most recent release (i.e. that’s why I had to publish a new version couple of days ago)
LikeLike
I installed Android Studio, then I installed your emulator extension add-on. But when I click the Launch Emulator icon, I get a message: “XDE could not be found, please make sure Android Emulator is installed”. What am I missing?
LikeLike
Unfortunately this extension is for the Hyper-V Android Emulator that comes with Visual Studio 2015. XDE is the emulator host for Windows Phone and Android Emulator.
LikeLike
I don’t understand – is it possible, or not, to invoke an Android emulator for VS 2013?
LikeLike
The extension is to invoke Visual Studio Android emulator (https://www.visualstudio.com/en-us/explore/msft-android-emulator-vs.aspx) not Genymotion or the standard emulators that comes with the java sdk. Do you have Visual Studio 2015 installed on your machine?
LikeLike
I do, but it’s running on Windows 7, not 8.1
LikeLike
I don’t have the VS 2015 installed. My question is, will it work if I have VS 2013 Update 4 and this extension, or does the XDE comes exlusively with VS 2015?
LikeLike
yeap unfortunately the android images and the extended XDE comes with vs 2015. The xde installed with vs 2013 is for windows phone only (afaik).
LikeLike
I have VS2015 installed, but if I click the Launch Emulator button, I receive the following:
XDE could not be found, please make sure Android Emulator is installed
LikeLike
Hey Antonio, thanks for the info. It must be that the new Visual Studio 2015 release has a different shell for android. I will update the plugin shortly.
LikeLike
thanks Can, I’ll wait…
LikeLike
How can I update that plugging?
LikeLike
it’s out version 1.4 😉 hope it helps..
LikeLike
it works, thanks!
LikeLike
If it’s stupid and it works… It ain’t stupid.
LikeLike
How can I update that plugging?
LikeLike
which version are you using currently?
LikeLike
Vigual 2013
LikeLiked by 1 person
Pingback: Android Box Launcher | Machtv Roku