Deploying from xamarin android to samsung s3 jellybean 4.1 - c#

Hi guys I have some questions regarding deploying apps from Xamarin for Android. I have a samsung s3 with jellybean 4.1 in it and I want to deploy my app that I developed from Xamarin to my phone. But my problem is I do not know how to deploy it on a jellybean 4.1 OS. We have tried ice cream sandwhich before but jellybean is something I'm not even sure about whether it is supported by Xamarin for android or not? Is it possible to deploy my app in my phone? And anyone of you guys who knows how to do it??? I'd appreciate the help thank you!

Yes, you can deploy to the S3 running JellyBean 4.1 (we are using one for testing).
Install the Samsung Kies manager on your dev machine so that you can get the latest device drivers. If your phone still doesn't come up as an option when debugging your code then make sure that USB Debugging is enabled on the device.
Also, make sure that your application is targeting the Android version you want at a minimum (right click the project -> Properties... -> Application -> Minimum Android to target).

There is no difference in procedure for deploying an app to Ice Cream Sandwich vs Jelly Bean.
Make sure your app's target SDK version is API 16 (API 17 if you want JellyBean 4.2). Follow the instructions I posted here to get the correct ADB drivers installed. Samsung ADB driver installation via Samsung Kies
Also make sure you have the Jelly Bean SDKs installed by opening Android SDK Manager. If the SDKs for APIs 16 & 17 are not installed you will need to install them.

It should be the same procedure to deploy to a Jellybean phone.
You just have to make sure your phone has USB debugging activated, it's usually found in the "Developer Options" part of the settings, which must be enabled before you can activate USB debugging mode.

If you're not debugging on the device, make sure you set Build Configuration to Release so you get the Xamarin runtimes.

Related

Xamarin initial setup not working because of Hyper-V issues [duplicate]

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!

How to test Xamarin Forms for Android

I have programmed a small app for Android with Xamarin Forms. I only tested the app with my Honor 7X and it works fine. Is there any other way that I can test the app for free at least on other virtual devices. I am new to Xamarin so I need some tips.
If you use Visual studio, you do not need to install third-part android emulator for your test in the android part.
You can using Android SDKs and Tools to install API in your VS like following screenshot.
Then you need to Hardware acceleration for emulator performance (Hyper-V & HAXM), choose suitable Hardware acceleration.
In the end, install emulators that you needed in device manager.
MS app center is not free, but it provide Free 30 day trial. After 30 days trial, Pay as your app grows
You can use Genymotion to testing all the API levels with different types of emulators. It's free for personal use. Refer this link,
Genymotion

VS does not see my Android 4.4.2 phone

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).

How to resolve unable to find device with the name: "Nexus 4 (Lollipop)" in xamarin

I have been battling with xamarine ide for a while now, I was unble to deploy my app to the emulator. Although I am a novice to xamarine IDE. The version am using is Xamarine Studio 6.3
pls I want someone to guide me here maybe I am missing something that did not allowed me to build an android app on Xamarine Studion Ide 6.3
These are the things I installed on my system to get started:
1. Xamarine Studio 6.3
2. Oracle vm virtual box (version 5.0.4)
3. Xamarine android player (XAP 0.6.5)
4. JDK 8
5. JTK for .NET (version 2.12.38)
Pls I really need your help if there is anything to install again so that I can get Xamarine IDE perfect for use to build an android app. Also if all what I have installed above are irrelevant, pls I need all the proper step here to get started. Thanks for your response.
Any device/emulator that is connected to your local instance of adb will show up in the Android Device List. If you are looking for a specific emulator such as Nexus 4(Lollipop), this was most likely provided in Xamarin Android Player or Visual Studio Emulator For Android. Both of these are now officially deprecated and removed from the default device list unless they are already running. Beforehand, they were added as default emulators that you could run straight from the Android Device List.
You can still run the emulators with their standalone programs to boot the emulators and they should appear on your device list as long as you can see them with the adb devices command.

Xamarin Visual Studio IOS Development Without a Mac?

I'm a .NET developer and want to write an IOS & Android app in C#. I've had a read around Xamarin for Visual Studio which looks interesting if not a tad expensive!
Do you need a Mac to debug your code? Do you just need a networked Mac to actually deploy the app to the Store?
Is the best option just to buy a Mac and run Windows with VS in a VM or can I just use my windows machine, write & debug the code in Windows then just hook up to a networked Mac for final deployment?
From May 2017, you can develop app without MAC.
Microsoft Xamarin introduce a Live Player. With Live Player, iOS apps can be deployed directly onto an iPhone or other iDevice from a PC running Visual Studio, where the code can then be tested and debugged.
WARNING The Xamarin Live Player Preview has ended. But it changed Hot Reload. With this feature, you can develop iOS app with your iPhone See discussion
See this video: https://www.youtube.com/watch?v=awgZDL1a3YI
this is Live Player Get start section: Live Player
Note: The final build and submission to the App Store will still require a Mac
Device Requirements
The Xamarin Live Player app supports the following devices:
iOS
iOS 9.0 or later.
ARM64 processor.
Check the App Store for a list of supported devices.
Android
Android 4.2 or later.
ARM-v7a, ARM-v8a, ARM64-v8a, x86, or x86_64 processor.
Limitations
There are some limitations on the things Xamarin Live Player can run, including the items below:
Android user interfaces designed with AXML files are not currently supported.
Some iOS storyboard features are not supported.
iOS XIB files are not supported.
Custom Renderers are not supported.
Xamarin.Forms Effects are not supported.
Embedded resources are not supported (ie. embedding images or other resources in a PCL).
Limited support for reflection (currently affects some popular NuGets, like SQLite and Json.NET). Other NuGets are still supported.
Some system classes cannot be overridden (for example, you cannot implement a subclass).
Some platform features that require provisioning can't work in the Xamarin Live Player app (however it has been configured for common operations like camera access).
Custom targets and build steps are ignored. For example, tools like Fody cannot be incorporated.
Yes, you must have a Mac to do Xamarin.iOS development. The Mac is required for building as well as running the iOS simulator. You can either use it as a build server, and actually do your development in Visual Studio (either in a standalone PC, or on a VM running on your Mac), or you can do your development directly on the Mac using Xamarin Studio as your IDE.
You can use Xamarin Studio instead of Visual Studio and build iOS application by C#.
First install VMware Workstation and then download OS X image and run it by VMware.
Then Install tools on it and enjoy.
Tools :
EDIT : The following links are out dated, You must install Mac OS 10.10 in order to be able to install XCode 6.
iOS Tools that you need:
1) Mac OS X image for Windows
Note: Max OS X Installation Help:
http://www.sysprobs.com/easily-run-mac-os-x-10-8-mountain-lion-retail-on-pc-with-vmware-image
2) Mono:
http://download.xamarin.com/MonoFrameworkMDK/Macx86/MonoFramework-MDK-3.2.4.macos10.xamarin.x86.pkg
3) Xamarin Studio:
http://download.xamarin.com/studio/Mac/XamarinStudio-4.2.1-1.dmg
4) MonoTouch:
http://download.xamarin.com/MonoTouch/Mac/monotouch-7.0.4.209.pkg
5) Xcode
Update 2018
Install VirtualBox
https://www.virtualbox.org/
Install MacOs 10.13 on VirtualBox
https://techsviewer.com/install-macos-high-sierra-virtualbox-windows/
Create or login with an apple account on the mac
Install XCode 9.0
https://download.developer.apple.com/Developer_Tools/Xcode_9/Xcode_9.xip
Enable Remote Login
System Preferences > Sharing > Remote Login > Enable for All Users
Configure VirtualBox with an additional network adaptor (host-only)
In Windows > Visual Studio (Xamarin Project) > Pair with mac
Enter the IPaddress of the second network adaptor
Let Visual studio install Xamarin IOS, IOS SDK, additional tools on the Mac
All set up.
An option is to use a remote service to do this.
For example:
http://www.macincloud.com
Anybody know that a Virtual-Machine is the solution! but when you want to have an OSX on windows it's not really easy as you just talked about it.
it's very important to find best OS ROM.
check it out here.
and you have to know that limitation is Apple's doing, not Xamarin's.
As someone that developed 3 Xamarin Forms apps, I would like to bring some points about the options:
Pair with a virtual Mac (VMWare, VirtualBox or cloud)
I worked this way for a while, but virtual machines consume a lot of hardware resources. Paid for a month to use a remote Mac, but the pairing and debugging process does not get much better.
Develop inside a virtual macOS
I have been using this option with good results. I just run everything on the macOS VMware virtual machine. Visual Studio and Emulator got a little slow (my CPU is i5 and 8GB ram), but is acceptable to make some adjusts. Advantages: Avoid pairing, Xcode to edit some resources, publishing.
Install macOS on Windows PC
This is kind of upgraded of previous suggestion. Didn't tested yet, but the performance should be better than VMWare if it works. They call this Hackintosh and is possible if your hardware is compatible.

Categories