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
378
votes
14 answers

appcompat-v7:21.0.0': No resource found that matches the given name: attr 'android:actionModeShareDrawable'

When attempting to use the latest appcompat-v7 support library in my project, I get the following…
215
votes
20 answers

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] even if app appears to not be installed

When trying to deploy my app to the Android device I am getting the following error: Deployment failed because of an internal error: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] I am aware of this question but the app is not installed. It has been…
YKa
  • 3,618
  • 4
  • 18
  • 31
166
votes
3 answers

When to use Xamarin.Forms vs Xamarin Native?

I need to make a decision between using Xamarin.Forms vs Xamarin native to develop an app. I want to go with Xamarin.Forms as UI code will be shared as well. So what are the technical positives and negatives of using Xamarin.Forms over Xamarin…
Ajay Kumar
  • 1,961
  • 2
  • 11
  • 17
163
votes
5 answers

FragmentPagerAdapter Exists Only In Android.Support.V4.App (and not Android.App)

I cannot find find FragmentPagerAdapter within Android.App. I do not want to use the Fragment's from Android.Support.V4.App, as my target API is 14 and higher (Android 4.0 and up). So, I want to just use plain of Android.App.Fragments, and there…
samis
  • 5,746
  • 6
  • 29
  • 64
136
votes
14 answers

How to change shape color dynamically?

I have
chobo2
  • 75,304
  • 170
  • 472
  • 780
96
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
  • 81,986
  • 49
  • 214
  • 348
85
votes
6 answers

Custom Layout for DialogFragment OnCreateView vs. OnCreateDialog

I'm trying to create a DialogFragment using my own Layout. I've seen a couple different approaches. Sometimes the layout is set in OnCreateDialog like this: (I'm using Mono but I've gotten somewhat used to Java) public override Android.App.Dialog…
gghuffer
  • 1,079
  • 1
  • 9
  • 11
81
votes
9 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
  • 23,162
  • 65
  • 156
  • 224
77
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,176
  • 2
  • 17
  • 30
71
votes
3 answers

How can I programmatically include layout in Android?

I'm looking for a way to include a layout programmatically instead of using the XML tag include like in my example:
slama007
  • 1,254
  • 2
  • 17
  • 33
58
votes
16 answers

Xamarin Android - How to rebuild Resource.designer.cs

In Xamarin Android - How to regenerate the Resource.designer.cs I tried to mark all the XML file's Build Action as "AndroidResource" and still the Resource.designer.cs won't get updated with new values. What event trigger generating this file?
Karthik Murugesan
  • 1,000
  • 3
  • 12
  • 23
48
votes
4 answers

MonoDroid: Error when calling constructor of custom view - TwoDScrollView

I am building an Android application that uses the custom-built TwoDScrollView found here: http://blog.gorges.us/2010/06/android-two-dimensional-scrollview/ This same class can be found referenced at several other websites, and others on Stack…
47
votes
4 answers

Anyone have experience with architecture for cross platform WP7 Android iOS mobile development (monotouch, monodroid, C#)

This question is specifically related to a recommended architecture and people's previous experiences for cross-platform WP7, iOS, Android apps developed using C#, Monotouch and Monodroid respectively. I have researched previous questions here,…
46
votes
1 answer

How do I launch multiple instances of Xamarin Studio on the Mac (Visual Studio for Mac)?

I'd like to have multiple copies of Xamarin Studio running simultaneously. Once one copy is running, double-clicking the Xamarin Studio icon in /Applications or clicking the currently-running Dock icon simply brings the current one to the…
patridge
  • 25,457
  • 16
  • 86
  • 129
45
votes
10 answers

Warning major version 52 is newer than 51, the highest major version supported by this compiler

Basicly I'm super newbie and started internship in IT company. I installed VS with Xamarin. The problem that I'm facing is very frustrating. So even when i create empty project I can't compile it and get error like this : Severity Code Description…
T.Gelev
  • 479
  • 1
  • 4
  • 4
1
2 3
99 100