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:

17200 questions
32
votes
25 answers

The "ResolveLibraryProjectImports" task failed unexpectedly

I have a Xamarin project, which is based on MvvmCross. The project is for both iOS and Android. I opened this project in Visual Studio 15. I got some errors, which I solved in no time. There are some errors, which are stuck and I couldn't solve them…
Zaeem Sattar
  • 848
  • 2
  • 10
  • 27
32
votes
7 answers

Black screen before Splash screen appear in android

We know that when the app do some long process like downloading some information from internet it could show a splash screen before loading the application and when the app is loaded completely it will display the main page. In splash screen…
Husein Behboudi Rad
  • 5,114
  • 10
  • 51
  • 110
31
votes
5 answers

Get current Activity - Xamarin Android

I am developing an portable App for Android and iOS. My current function is taking a Screenshot and use that image in the code. Therefor I have an Interface in the portable library. public interface IFileSystemService { string…
Lexu
  • 489
  • 1
  • 5
  • 13
31
votes
4 answers

jar-Binding of ActionBarSherlock for Mono for Android

I'like to bind the jar-library of ActionBarSherlock in my Mono For Android project. I am reverencing to this documentation: http://docs.xamarin.com/android/tutorials/Binding_a_Java_Library_(.jar) I have successfully bound android-support-v4.jar…
Flo
  • 449
  • 4
  • 7
30
votes
5 answers

Is MonoGame reliable?

I'm looking for a cross-platform game development framework. MonoGame looks easy to learn and fast to develop, but I see most of the games featured at their page do not work, or have a lot of bugs. Can anyone explain if MonoGame is reliable for…
xus
  • 2,487
  • 8
  • 30
  • 44
30
votes
1 answer

Global Exception Handling in Xamarin Cross platform

Can you please let me know how to handle the global exception(without App crash) in Xamarin Cross platform project.
30
votes
6 answers

Xamarin: Connect to locally hosted web service

I want to create a web api application to connect xamarin with android. I had tried a lot, but some connection errors are coming. My code is given below: public async Task find(int ID) { using (HttpClient client = new…
jayeshmon kj
  • 301
  • 1
  • 3
  • 3
30
votes
5 answers

Write device platform specific code in Xamarin.Forms

I have the following Xamarin.Forms.ContentPage class structure public class MyPage : ContentPage { public MyPage() { //do work to initialize MyPage } public void LogIn(object sender, EventArgs eventArgs) { bool…
Michael Kniskern
  • 23,162
  • 65
  • 156
  • 224
29
votes
4 answers

Xamarin Android Build Failed "Invalid value for outputAssembly"

A few days ago my solution seemed to work fine, but today all of the sudden the Android project doesn't build. I get no Error, but I do get the following output: 1>Build started. 1>Project "MyApp.Android.csproj" (Install target(s)): 1>Project…
JeroenM
  • 735
  • 1
  • 9
  • 25
29
votes
3 answers

Xamarin build action warning XA0101

I'm getting following warning while building the Xamarin Android project. Warning XA0101: @(Content) build action is not supported (XA0101) For this topic I found resources below, but I can't figure out the solution to get rid of this warning. Can…
Andree
  • 968
  • 1
  • 13
  • 28
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,562
  • 6
  • 32
  • 53
28
votes
3 answers

Implementing IJavaObject on MonoDroid

I'm currently trying to implement an ILocationListener on a class in order to receive GPS updates - this is not on an Activity, just a normal C# class. As part of the ILocationListener contract I need to support I JavaObject: public IntPtr…
Stuart
  • 65,726
  • 7
  • 109
  • 161
28
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
  • 40,613
  • 9
  • 117
  • 115
28
votes
3 answers

Invalid value 'armeabi' in $(AndroidSupportedAbis). This ABI is no longer supported. Xamarin.Forms - VS2019

I have a Mobile App built with Xamarin.Forms when I am trying to upgrade my project from VS2017 to VS2019 I get this error in Android Project Invalid value 'armeabi' in $(AndroidSupportedAbis). This ABI is no longer supported. Please update your…
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
  • 15,926
  • 28
  • 119
  • 175