Xamarin & .NET Developer Events in August
This is a short guide for how to connect to Android Player in case you’re using Visual Studio in Windows through Parallels. I use to do this in a way more complicated manor before I realized that it’s just this simple. Looking ahead, In VS 2015, Microsofts gives us an x86/hyper-V Android emulator that looks great. But for now, this works the best.
Start your engines
Fire up Android Player (or any other emulator of your choice that runs Android) in OS X and get the address to the emulator. Click on the settings cog and note the IP Address.
Connect to the emulator
In Windows, open your project in Visual Studio and hit Tools -> Android -> Android Adb Command Prompt. Write adb connect [the IP address] and you should then be connected to your emulator like in the image below.
Run your project
You should now see your device in Visual Studio!
Of course, things can go wrong. The issues I’ve encountered are these.
1) I had to disable my wireless network while connected to the local wired network. Surely this is a configuration issue that I just haven’t bothered with yet.
2) The emulator doesn’t show up. Restart Visual Studio.
3) You have to reconnect each time your Mac goes to sleep…
4) Firewalls… Make sure port 5555 is open for TCP from Windows to OS X.