I have created a cross platform Xamarin Studio project for iOS and Android. Sources for shared code, Android and iOS all appear in the Solution browser. However only iOS simulators appear in the device selection popup for where to run the app. There is no Android options that appear.
I have tried creating and starting AVDs manually, but nothing shows up.
How do I run the app in an Android Virtual Device?
Change the Solution's Startup Project to the Android-based one and the Devices will change from iOS to Android devices:
Related
I am desperately looking, with my friend Google, for the best practical tool to debug on Android - I mean, for real, not with Chrome.
For iOS, Apple came with their Simulator in XCode, which is great because it's replicating the exact behavior of a real device, and you have multiple choices, very handy.
What about Android? Is there something equivalent? Android Studio has been a mess for me, is there something better to advice?
Depends on which environment you're coding in. If you're coding an native app you use Android Studio and it's debugger. If you're coding in React Native you'd use Chrome or React Developer Tools (https://facebook.github.io/react-native/docs/debugging.html), and so forth (Xamarin has its debugger, and the web based options use Chrome I suppose).
AVD (Android Virtual Device) is a part of the Android Studio install and it contains emulators. You can open it without opening Android Studio, if you'd like to. See this thread on how to do it in the terminal (Mac Terminal - How to start Android Virtual Device Manager on CLI?).
For Android we have Android Virtual Device (AVD). You need to ensure Android-Studio is installed. For details creating an AVD refer to this official documentation for step by step guide.
Coming from Android Studio I have already pushed apps to my Android device before (drivers and developer settings all setup), and running adb devices shows my device in the list.
What am I missing in order to be able to see my device in the Start list in Visual Studio for my Xamarin project?
Right now it just shows two virtual devices. How do I get my physical device to show up and deploy my app there?
Removed Android SDK and references in environmental variables, uninstalled Xamarin and reinstalled and let the installer create and download the SDK. Lo and behold it started to work.
Not sure what weird configuration I had prior.
I've problem about using Genymotion Android emulator for xamarin development.
I have intalled Genymotion desktop app and several Android devices within it. Whenever i run any of the installed device in Genymotion desktop app via start button, it works fine but there is no Genymotion emulator in the list of available emulators in Visual Studio, neither in Xamarin studio (There are only built-in Android Emulators and devices installed in Xamarin Android player).
I found some articles about using Genymotion Emulator for Xamarin and all of them says that : Both Xamarin Studio and Visual Studio with Xamarin discover it, no problem
I am using Visual Studio Enterprise Edition, Xamarin business editiorn and free edition of Genymotion, if that matters.
Genymotion needs to be running for Xamarin Studio (and thus Xamarin's VS plugin) to see it.
Once your Genymotion virtual device is actually running, then Xamarin will see it as a 'physical device' that it can deploy to.
Example:
I set up a Hello World applicaiton with a single button. I can launch Genymotion from Android studio. The Android logo appears but the app doesn't appear anywhere. I feel I'm missing something obvious.
I'm using:
Genymotion plug-in 1.0.5
Android Studio 1.3.2
Virtual Box 4.3.30
Genymotion, with Windows 8.1.
I can't use the built-in Android AVDs because I have an AMD processor rather than Intel. I tried setting up a custom device but this won't run the app (no response). I've tried using my Android tablet to run the app on, but this won't work either.
Thanks for your help.
I am following this for Android platform: http://ionicframework.com/getting-started/ (cmd> ionic emulate android) . It builds ok, and I know the apk works on a phone, but I want to figure out how does it decided which Android Virtual Device to launch. At the moment, it start up a v2.2 emulator by default and then complains it's too old while trying to install the apk. I want to use v4.1 or higher (I have the relevant SDKs installed through previous native Android development using Eclipse.)
From the command line, just specify the emulator target.
e.g. ionic emulate android --target="Nexus_6P_API_25"
Check the AVD manager for a list of available and installed virtual devices.
Kind of found an answer myself. Instead of using Google Android emulator, one can use
Genymotion. And use can set the device screen size and Android version.