Questions tagged [xamarin.android]

Xamarin.Android (previously known as Mono for Android) is an implementation of Mono that runs on the Android platform, allowing you to write Android applications in C# using native Android libraries as well as using the .NET BCL (Base Class Libraries). Use this tag for issues that only occur when using Xamarin.Android, or when using Android-specific features.

Xamarin.Android (previously known as Mono for Android) is an implementation of Mono that runs on the Android platform, allowing you to write Android applications in C# using native Android libraries.

###Links:

18757 questions
29
votes
6 answers

Where is the debug.keystore on Mac?

I'm trying to generate my fingerprint and it supposed to be here : ~/.android/debug.keystore, but I don't have nothing there, although I can run my monodroid projects normally as well, so how can I find the debug.keystore file?
arkmetal
  • 681
  • 3
  • 11
  • 25
29
votes
6 answers

"The XamarinTelemetry task failed unexpectedly" on second build

With the latest VS preview (VS 17.3 Preview 3), with both Android and iOS, building my application works the first time I build it, but the second time it fails with The "XamarinTelemetry" task failed unexpectedly. Looking at the logs I see…
29
votes
2 answers

Java.Lang.NoClassDefFoundError when implementing firebase cloud messaging

I am implementing push notifications using Firebase Cloud Messaging, for this I added this code in my AndroidManifest.xml file
29
votes
2 answers

How does Mono for Android work?

I am interested in how Mono for Android (by Novell) works. My biggest question is around the actual runtime's that are used. Is MfA providing a Mono runtime that wraps and calls down to the Dalvik runtime or is the Dalvik completely bypassed in…
nicholas.hauschild
  • 42,483
  • 9
  • 127
  • 120
29
votes
4 answers

How to change Android application name in Xamarin.Forms?

I am working with Xamarin.Forms in Visual Studio For Mac and I have created a very basic Xamarin.Forms application. I have checked Android and iOS targets. I got 3 projects: A common project An iOS specific project And a Droid specific…
Bob5421
  • 7,757
  • 14
  • 81
  • 175
29
votes
7 answers

Error CS1703: Multiple assemblies with equivalent identity have been imported - Xamarin + VSTS

I upgraded to the latest Xamarin for Visual Studio 2015 (Community Edition), recompiled my projects, checked in a few small code changes and my VSTS build server fails with this error message: [error]CSC(0,0): Error CS1703: Multiple assemblies with…
Quality Catalyst
  • 6,531
  • 8
  • 38
  • 62
29
votes
2 answers

Show splash screen image with auto fit

I am using the following style to display a splash screen for an android application written in MonoDroid. However, it seems to take the image and maximize it to fit the whole screen while messing up the aspect ratio. Thus, the image looks huge and…
Telavian
  • 3,752
  • 6
  • 36
  • 60
28
votes
11 answers

Can't set Build Action to GoogleServiceJson

I'm working with Xamarin-Android to make an application, so I need to set Build Action to my google-services.json file but there is no such Property as GoogleServicesJson, and when I try just to write it, it shows me an exception: Exception of…
28
votes
4 answers

(Android Xamarin) Get Resource string value instead of int

Im just starting to create a simple android app with the use of Xamarin using VS2012. I know there is a type of Resource just for strings. In my resource folder, i have an xml file like this:
raberana
  • 11,739
  • 18
  • 69
  • 95
27
votes
5 answers

Android Activity Background Image

How do I use a background image in an Activity theme/style? If I do this using a colour: It works correctly,…
Matthew
  • 4,832
  • 2
  • 29
  • 55
27
votes
3 answers

Targeting 64 bit architectures on Xamarin Android

I received an email from Google that we need to start supporting 64-bit CPUs in our Android apps by August 1, 2019. In their documentation, it states that there should be a lib/arm64-v8a folder in your apk contents if you're correctly supporting 64…
Justin
  • 17,670
  • 38
  • 132
  • 201
27
votes
2 answers

Output of DataContractSerializer differs between .NET and Mono

I am serializing data in a Mono For Android application and sending it using REST to a .NET server listening using WCF. So far this has worked fine, however, with this particular data contract, although the server throws no errors, the Lists inside…
Jonathan L.
  • 682
  • 6
  • 10
27
votes
7 answers

Debug device connected by USB to VirtualBox's host, from Android-Studio inside VM

I am trying to get mono for android (aka monodroid) working within a windows 7 virtual machine on virtualbox but I am having issues with the adb connection to my phone. When I run "adb devices" to list the devices present it show up no problem, but…
Brian
  • 951
  • 2
  • 10
  • 20
26
votes
10 answers

Android Intent Chooser to only show E-mail option

My app integrates e-mail where the user can submit a bug report, feedback, etc. from the app directly. I'm using the application/octet-stream as the SetType for the Intent. When you go to submit the e-mail you get the content chooser and it shows…
Neal
  • 9,487
  • 15
  • 58
  • 101
26
votes
3 answers

How to get Device Id in Xamarin Forms?

How can I get Device Unique Id in Android and iOS using c# in Xamarin Froms? I am using Azure Notification Hub for sending Notification. I am referring this blog. But in Android I am not able to find related "Settings"