I am new to mobile development. So i am using xamarin for this purpose. I have following this sample code as a starter in mobile development.
I am using visual studio 15 for it. I have followed all the steps mentioned in sample code. For now i want it to run only on android, so i have chosen .Droid as my Startup project, but on Debug Target i cannot find Xamarin Emulator for android all i find is the android emulators list. Please see the image bellow
While on clicking the Manage Virual Devices i get the following list of devices as shown in bellow image
I have searched many articles on it but couldn't find any solution
Any help would be appreciated
Xamarin Emulator for android isn't a specific emulator.
The android emulator's list is a list of devices for you to emulate; the virtual devices page is a list of devices/OS versions emulators that can be downloaded.
Select/Download an emulator profile in the device/size/OS version that fits your needs and run your code.
Related
I am using windows 10 home and visual studio 2017. I want to develop android apps with xamarin. Hyper-V feature is not available on windows 10 home and I can not afford pro version, So emulator is not installing without hyper-v.
What should I do to develop android app?
Have anybody idea to deploy android app without using emulator and hyper-v?
Thank you in advance!
It's possible to develop Xamarin app without using the emulators. But in that case you'll need to have an Android device to deploy your app on.
Setup Android SDK Manager on your system. Although Xamarin includes a
SDK Manager, you can download it from the following link. Android SDK Manager download
Setup the ADB (Android Debug Bridge) on your system (install Google USB Drivers)
Connect your Android device to the system after you enable USB Debugging(Developer options) on it. Once the device is connected it will give you a prompt to enable debugging. Tap yes and you'll see the option to build to your device as shown in image.
You can try to use any avaliable on windows android emulator. I like to use Bluestack (https://www.bluestacks.com), the steps for use it below:
Install Bluestacks emulator
Launch emulator and wait for load finished
It's your wellcome screen, your application and apps from store will be here
Go to settings > Preferences and check "Enable android debug bridge (ADB)" + "Enable Android input debugging"
One time Setup finished
"Open android adb command promt" and type
adb connect 127.0.0.1:5555
If you have done everything good you will be connected to emulator and ready to debug your application
Good luck!
UPDATE:
As of visual studio 2019, non-hyper v emulation has been stopped.
Old Answer
I am very positive that at the time of VS installation the Visual studio emulators for Android are readily available for download and use, there you can find a good amount of android emulators also it provides you with Android SDK which again can be used to create Android emulators without using Hyper-V
The below link contains all you need to know about Visual studio emulators including on how to install :
https://msdn.microsoft.com/en-us/library/mt228279.aspx
Hope this Answers your question.
Goodluck!
i started recently working on a app for mobile devices with xamarin forms. To work on the GUI fluently i tried this:
Live Reload Preview
It worked with the Visual Studio Android Emulator. But i want to work with google's emulator becaus of the more recent updates. I get in VS the message, that LiveReload is enabled but not listening. So i tried a view things with the "Hostname" and "Port" field within the settings of live reload in VS. If i use the command "adb devices" i can see the emulator and it's port (5554 in my case).
Should Hostname stay at localhost? Or did i miss something? The project worked fine with VS Android Emulator and the Live Reload extension. So i can at least exclude a mistake in my code.
Would be great if there's someone who could help :)
Thanks a lot!!
I am writing my first Xamarin application. I want to test run it on my phone Samsung Galaxy 3 (Android 4.4.2 Kit Kat) but it doesn't appear among the VS project build options. I have set the target platform to Android 7.1 and the minimal Android version to 4.0. Has anybody have any similar experiences? How did you fix it?
Xamarin has great documentation, tutorials, and code samples.
Here's a detailed guide to setting up your device for development:
https://developer.xamarin.com/guides/android/getting_started/installation/set_up_device_for_development/
A gotcha that might cause this issue is bad project configuration. Open the configuration manager in VS and look at your current settings for your Xamarin Forms and Android projects (I think it's ARM for the S3--not x86).
I have a question about Android Emulator(s) (well, there are actually three sub questions). So, In VS2015 we have two Emulators installed:
On the left - built in Visual Studio Android Emulator (made by Microsoft), using Hyper-V (please correct me if I'm wrong)
On the right - built in.. Xamarin.Studio? Android Emulator (made by Android), using HAXM (please correct me if I'm wrong).
I have a problem, because when you create a Xamarin.Forms project you get this Virtual Device setup by default:
It uses API19, but when I click "Run", it's complies without errors and deploy/run in new Android Emulator (on the right). Why?
When I open Android Virtual Device Manager, selects the same virtual device and click "Starts", it opens the Android Emulator (on the left). Why?
I've enabled Hyper-V for now, my Windows emulators work.
How can I force Visual Studio to run on old "on the left" Android Emulator when I run the project? Can I set this up?
When you open your Android Emulator Manager you will find the following choice
x86 means AVD with HAXM. If you do not have that choice please install image with HAXM
The emulator that create by android emulator manager is Google's default emulators, and Your left side emulator that means the Google's default emulators and with the skin like "WQVAG" or someting others.
Your right side emulator that is created by vistual studio:
when you find the the CPU Architecture is x86 that means it works with HAXM
Use the different AVD Name will clearify which emulator you selected to run.
How can I force Visual Studio to run on old "on the left" Android Emulator when I run the project? Can I set this up?
Select the emulator that create by android emulator manager with the skin.
On the left is an AVD thus it is Google's default emulators. It could be HAXM accelerated if you installed HAXM.
On the right is the VS Emulator for Android created by the Visual Studio team.
You are confusing the built in AVD emulators with the VS Android emulator.
By default whichever Device is selected (Has the green play button next to it) will be used. In your case, you have the VS Emulator for Android selected and thus it will always deploy to that one.
You can use the small down arrow to select another compatible emulator such as the Google emulators if you created a new AVD that is compatible with your project.
See further: https://developer.xamarin.com/guides/android/deployment,_testing,_and_metrics/debug-on-emulator/android-sdk-emulator/
I have written a game using C# monogame android. I want to first transfer it to my personal phone and then upload it to google play possibly? How could i do that ? I saw that it is 25$ is this all the fee there is to it ? Can someone reference a blog to me, or guide me through, that would be helpful. All the information i found on google was kind of confusing.
#Shiro If you have APK file (Android Package executable file) then you can directly copy it on your phone and install it.
Which IDE are you using to develop. Intellij, Android Studio and Eclipse. Connect your phone to the system, enable the debugging in settings.
Click on the Run button, it loads the app to your phone.
You can also use the emulator (using AVD manager) in all the IDE mentioned above. Genymotion(an external emulator) can also be used
Go to your project "YourProject"\bin\Debug and copy yourprojct.apk file to your phone and install it.
For google play watch this tutorial.