Questions tagged [xamarin]

Xamarin is a platform consisting of Xamarin.iOS, Xamarin.Android, Xamarin.Mac and Xamarin Test Cloud. It allows you to write cross-platform native Apps for iOS, Android and Mac and follow your app through its entire lifecycle. The introduction of Xamarin.Forms supports Native UI development for iOS, Android and Windows

is a platform consisting of , , , , and . The platform provides tools for the entire lifecycle of an App - developing, test and DevOps. This platform allows you to write cross-platform native applications for , and using , allowing you to share a lot of code between platforms.

Tag Usage

When using the , you should also include the related Xamarin platform tag your question relates to.

If you are describing a question about a crash in your app, please include a complete stack trace and, preferably, a minimal reproducible sample.

History

Xamarin was founded in May 2011 and is headquartered in San Francisco, with an engineering office in Boston, MA. Xamarin was acquired by Microsoft in February 2016.

At Microsoft's Build 2016 developer conference on March 31st, 2016, Microsoft announced a new licensing scheme; including Xamarin with all Visual Studio and Visual Studio for Mac versions, including Visual Studio Community edition. And now, Xamarin is free for anyone to use with Visual Studio, on either Mac or Windows

Xamarin created the Xamarin Platform which includes Visual Studio for Mac as well as a plug-in for Visual Studio on Windows, which can be used to develop native mobile applications for Windows, iOS, and Android platforms using the .NET framework.

The Xamarin Platform includes Xamarin.iOS, Xamarin.Android, and Xamarin.Mac (for macOS), which allows for the development of C# and .NET applications with full access to the native APIs. This allows for code sharing between platforms and the creation of applications for multiple platforms with a native user experience.

Xamarin 3 introduced , a framework for creating UI from code shared between platforms.

Xamarin 4 introduced a new SSH-based build host, to replace the old and buggy build host. The build host provides the connection between Visual Studio and the Mac in order to be able to build and deploy iOS applications.

Since June 2017 the Xamarin Platform supports libraries shifting and expanding the previous Portable Class Library (PCL). It enhances access to APIs within the .NET base class libraries and supports more platforms.

Resources

Books

Chat Rooms

50490 questions
101
votes
10 answers

How do I debug on a real Android device using Xamarin for Visual Studio?

I've found a few links but they don't explain how this is done. I can debug using Xamarin Studio IDE but that IDE (no offense) is lame compared to Visual Studio 2012. Using Visual Studio 2012, there appears to only be option to select an emulator to…
jay_t55
  • 11,362
  • 28
  • 103
  • 174
99
votes
7 answers

The project is missing Android SDKs required for building

I'm attempting to build my first F# Android project in Visual Studio 2017 (Community Edition). Immediately after creating a new project by using the F# - Android - Blank App template, the error window in Visual Studio displays the following…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
96
votes
10 answers

PushAsync is not supported globally on Android, please use a NavigationPage - Xamarin.Forms

I have the following method in an Xamarin.Forms.ContentPage wired to a button click event public class LoginPage : ContentPage { private Button _loginButton = null; private Entry _PasswordInput = null; private Entry _UsernameInput =…
Michael Kniskern
  • 24,792
  • 68
  • 164
  • 231
95
votes
13 answers

Facebook SDK: app not registered as a URL Scheme

I am using the Facebook SDK found here, and am trying the sample that is provided (in the folder FacebookiOSSample). If I simply replace the AppId here with my specific AppId, then I can no longer Share. (I replaced it in both the AppDelegate file…
L. Desjardins
  • 1,465
  • 1
  • 12
  • 22
87
votes
7 answers

Can you develop Linux applications with Xamarin?

Is it possible to develop and build Linux applications with Xamarin with the same code base? After a few years with Ubuntu, my main OS right now is Windows again. But it's not impossible that I could switch to Mac. Right now I have a bit of…
JuSchu
  • 1,480
  • 1
  • 11
  • 12
87
votes
27 answers

ERROR ITMS-90164/90046: Invalid Code Signing Entitlements

Note: I'm developing using Xamarin. Similar question posted in Xamarin Forum here I'm creating an app called, say CompanyApp. Then I created an App ID for it com.Company.CompanyApp, along with Distribution Provisioning Profile that uses the…
86
votes
16 answers

Xamarin.Forms ListView: Set the highlight color of a tapped item

Using Xamarin.Forms, how can I define the highlight/background color of a selected/tapped ListView item? (My list has a black background and white text color, so the default highlight color on iOS is too bright. In contrast, on Android there is no…
Falko
  • 17,076
  • 13
  • 60
  • 105
80
votes
9 answers

Getting OutOfMemoryException in Xamarin

java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing 'java.exe' I am getting out of memory exception in my visualstudio Xamarin Project Please help me how can i resolve…
Srinivas Ch
  • 1,202
  • 2
  • 19
  • 34
79
votes
8 answers

GridLayoutManager - how to auto fit columns?

I have a RecyclerView with a GridLayoutManager that displays Card Views. I want the cards to rearrange according to the screen size (the Google Play app does this kind of thing with its app cards). Here is an example: Here is how my app looks at…
79
votes
15 answers

How to terminate a Xamarin application?

How to terminate a Xamarin application from any of the activities? I have tried both System.Environment.Exit(0) and System.Environment.Exit(1) as well as Finish() and killing all the activities. It still opens one blank page with default activity…
Nik
  • 791
  • 1
  • 5
  • 4
76
votes
7 answers

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…
Hardgraf
  • 2,566
  • 4
  • 44
  • 77
75
votes
34 answers

Xamarin.Forms - InitializeComponent doesn't exist when creating a new page

I'm using Visual Studio to try out Xamarin.Forms. I'm trying to follow the guide: http://developer.xamarin.com/guides/cross-platform/xamarin-forms/xaml-for-xamarin-forms/getting_started_with_xaml/ In short, I create a Xamarin.Forms solution using a…
user2915962
  • 2,691
  • 8
  • 33
  • 60
71
votes
27 answers

Keystore file doesn't exist

I'm trying to get the SHA1 fingerprint so I can get an Google API key. Im in the following directory: /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin Then I execute the command from the google site : keytool -list -v…
Bas
  • 4,423
  • 8
  • 36
  • 53
70
votes
5 answers

How can I save some user data locally on my Xamarin Forms app?

I have a simple Xamarin Forms app. I've now got a simple POCO object (eg. User instance or an list of the most recent tweets or orders or whatever). How can I store this object locally to the device? Lets imagine I serialize it as JSON. Also, how…
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
68
votes
4 answers

In Xamarin.Forms Device.BeginInvokeOnMainThread() doesn’t show message box from notification callback *only* in Release config on physical device

I'm rewriting my existing (swift) iOS physical therapy app "On My Nerves" to Xamarin.Forms. It's a timer app to help people with nerve damage (like me!) do their desensitization exercises. You have these "fabrics" (e.g. a feather) where each fabric…
saraford
  • 729
  • 5
  • 5