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
19
votes
3 answers

Xamarin: Can not resolve reference: `System.Threading.Tasks.Extensions`, referenced by `MySqlConnector`.

I can't build my Xamarin Android project in Visual Studio 2017. I keep getting this error: Can not resolve reference: `System.Threading.Tasks.Extensions`, referenced by `MySqlConnector`. Please add a NuGet package or assembly reference for…
Coder14
  • 1,305
  • 1
  • 9
  • 26
19
votes
1 answer

Is it possible to use "PackageReference" in Xamarin.Android or Xamarin.iOS projects?

By default, Xamarin.iOS and Xamarin.Android projects use a package.config file to manage Nuget dependencies. The Microsoft page about Package references (PackageReference) in project files says: By default, PackageReference is used for .NET Core…
Bruno Peres
  • 15,845
  • 5
  • 53
  • 89
19
votes
1 answer

Accessing Android Context in Xamarin.Forms

I've seen some old solutions to getting the Android Context using Xamarin.Forms. These older solution suggest the use of Xamarin.Forms.Forms.Context but due to the ever changing Xamarin.Forms platform this no longer works. In my example I have used…
B Best
  • 1,106
  • 1
  • 8
  • 26
19
votes
3 answers

Where can i add google-services.json in xamarin app

Hi we are developing Xamarin application where we want monitor how many peoples install application from our referral id. Im find this document https://developers.google.com/analytics/devguides/collection/android/v4/ where it says "Copy the…
puko
  • 2,819
  • 4
  • 18
  • 27
19
votes
1 answer

SpecialFolder.Personal location

I am saving a file to System.Environment.SpecialFolder.Personal in Xamarin. It appears to succeed, because I can immediately pull data from the file. However, I cannot browse and find this file on my phone. Where exactly is this exclusive Personal…
RealityDysfunction
  • 2,609
  • 3
  • 26
  • 53
19
votes
2 answers

SQLite error Insufficient parameters supplied to the command at Mono.Data.Sqlite.SqliteStatement.BindParameter

I have a simple insert statement to a table in an SQLite database on MonoDroid. When inserting to the database, it says SQLite error Insufficient parameters supplied to the command at Mono.Data.Sqlite.SqliteStatement.BindParameter I think there…
Has AlTaiar
  • 4,052
  • 2
  • 36
  • 37
18
votes
5 answers

Mono for iOS/Android Open or Closed? Paid or Free?

I am attempting to learn more about mobile/tablet development and, as a .NET developer, I am naturally drawn to Mono. But I am confused--I thought that Mono was free and open source; however, all signs seem to point to Mono being a "pay-to-play"…
Matt Cashatt
  • 23,490
  • 28
  • 78
  • 111
18
votes
9 answers

Failure INSTALL_FAILED_MEDIA_UNAVAILABLE

I've installed JDK, Android SDK and Mono Android for Visual Studio 2010, I've created an empty solution and I got the emulator up and running with Android 2.3.3 - so far so good. When I try to deploy (F5) the app to the emulator, it connects to the…
Miros
  • 527
  • 1
  • 3
  • 11
18
votes
7 answers

The package was not properly signed (NO_CERTIFICATES) in running application

I am developing xamarin forms application and i got the below error when running application on android emulator >The package was not properly signed (NO_CERTIFICATES). 2> at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String…
Mahmoud Alam
  • 380
  • 1
  • 4
  • 13
18
votes
1 answer

ScrollView allow content overflow

Goal I am trying to allow a scrollview to overflow (not clip its children). I have this working with a carousel view but cannot get the same result with a scrollview. The idea of this is to center the scrollview and allow overflow so the content can…
Ruddy
  • 9,795
  • 5
  • 45
  • 66
18
votes
7 answers

Automatically scroll to bottom of RecyclerView

I have a fragment that has a RecyclerView inside its layout file. The RecyclerView holds messages in a chat. So naturally, I need the RecyclerView to scroll to the bottom when the chat fragment gets opened. I tried scrolling directly on the…
18
votes
3 answers

Xamarin - apk App Size

So, after all the hard-work developing the app using Xamarin.Forms, when I tried to create a release build today, I was shocked to see the app size is ~25MB - ~31MB (after SDK Only Linking, ProGuard, Creating apk for each abi). My resource folder is…
My Helper
  • 707
  • 1
  • 10
  • 20
18
votes
3 answers

How to prevent a label in a stack layout from getting cut off

I've got two labels next to each other. The first is pretty long and should get truncated if necessary. The second should be displayed completely - no matter what. This is my code: MainPage = new ContentPage { Content = new StackLayout { …
Falko
  • 17,076
  • 13
  • 60
  • 105
18
votes
2 answers

Visual Studio Emulator for Android couldn’t determine the host IP address

Whenever I'm trying to debug and run the application using Android Emulator from visual studio 2015 getting some below error. So help me on this, I'm very tried from this error. The emulator is unable to connect to the device operating system:…
Pratius Dubey
  • 673
  • 6
  • 19
18
votes
2 answers

Android Expandable RecyclerView different Card height

I have a RecyclerView that contains a list of cards, each of which expand into child cards. Each card has different text. I want that when the user clicks on a child card, it will expand to show the text inside. The expansion height is based on how…
amitairos
  • 2,907
  • 11
  • 50
  • 84