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
4
votes
1 answer

Are MonoDroid (Xamarin) apps less prone to theft?

I've been investigating Google Play License Verification Library to decrease piracy of an app I am finishing up. But it seems rather easy to to crack apps that use LVL (see How the Android License Verification Library is Lulling You into a False…
t9mike
  • 1,546
  • 2
  • 19
  • 31
4
votes
1 answer

How can I use ServiceStack client with Xamarin.Android Indie License

When I compile my Xamarin.Android application which is linked with ServiceStack compiled dll, compilation failed with message: Error XA9003: Assembly System.ServiceModel, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35…
wilfrem
  • 85
  • 5
4
votes
1 answer

Communicating between fragments xamarin

I'm using Xamarin for android. I'm using a FragmentActivity ActionBarSherlock to have 4 tabs that each load a fragment. One of those tabs hold a ListFragment (A) that holds an adapter that holds a list which is displayed in the Fragment, and another…
4
votes
1 answer

MvvmCross initialization

In question Using MvvmCross from content providers and activities I wanted to know of how to initialize the MvvmCross system. The answer given worked then, but with recent updates of MvvmCross the function which I used…
Krister Renaud
  • 193
  • 2
  • 8
4
votes
2 answers

My Android transition animation is only working once

I have two activities and I transition between the two of them by doing a simple slide back and forth. With the following code that works just fine on the first time by using overridePendingTransition but that method doesn't work after an activity…
clifgray
  • 4,313
  • 11
  • 67
  • 116
4
votes
1 answer

Async/Await in portable class library targeting Windows Store, iOS and Droid

Developping an MvvmCross application targeting Android and iOS (Xamarin/Mono) and Windows Store (because it's so easy/fast to debug compared to iOS/Android). The Core of the app is PCL based. Is it possible to use Async/Await in the Core…
Arthur Kater
  • 826
  • 10
  • 17
4
votes
1 answer

Binding to TableLayout in Mvvmcross

Is there any example of binding any sort of collection to a TableLayout in android? I keep receiving the message/warning that binding failed for attribute ItemSource LocationQuantities. All of the other bindings to the view model work as normal, but…
theMothaShip
  • 1,191
  • 1
  • 12
  • 24
4
votes
1 answer

Xamarin/Android: F# scoping - how do I see a namespace in a different file?

Xamarin/Android: F# scoping - how do I see a namespace in a different file? I know this sounds really basic, but I can't seem to get it to work. I will illustrate with an example: I start a new solution, I select a new F# Android App and call it…
4
votes
2 answers

How to Order By Descending with SQLite.NET? OrderByDescending() gives me error: "Order By does not support: xx => Convert(xx).ID"

I am trying to implement a method to retrieve all the rows in a table, ordered by ID descending. This is the code: public IEnumerable GetItemsDescending() where T : IBusinessEntity, new() { lock (locker) { …
DaveDev
  • 41,155
  • 72
  • 223
  • 385
4
votes
1 answer

C# adding extra value to .net enum

Today when I tried to port some existing code from .net to Xamarin (Mono for Android) I encountered the problem that [MethodImpl(MethodImplOptions.AggressiveInlining)] did not compile for Android because the MethodImplOptions doesn't have an…
Devedse
  • 1,801
  • 1
  • 19
  • 33
4
votes
1 answer

How popule ListView with database items in Xamarin?

I can't popule a ListView with database items. Function in sqlite for get table: public Android.Database.ICursor getFornecedores() { Android.Database.ICursor temp = null; try { sqlQuery =…
4
votes
3 answers

Cross-platform Localization

With Xamarin Android, it possible to create localized strings for multi-language apps, as is shown in their Android…
Dave W
  • 355
  • 3
  • 11
4
votes
0 answers

Using Android ActionBar to navigate between activities

I am trying to reuse the NavigationBar from the Android ActionBar to navigate between screens. Since each screen contains lots of separate logic, I would like to have an Activity for each screen, but each screen should reuse the ActionBar since it…
Alex
  • 2,033
  • 1
  • 24
  • 40
4
votes
1 answer

MvvmCross: How to programmatically construct an MvxListView with custom adapter?

I am trying to implement a grouped listview on Android similar to iOS. Therefore, I am trying to write my own custom MvxAdapter that supports grouped section headers. The default MvxListView constructed from axml will create a default MvxAdapter. …
user2395286
  • 457
  • 7
  • 18
4
votes
1 answer

Xamarin (monodroid) + adMob build error

I have a problem. I have an application builded with monodroid libraries. Version of android sdk 4.0.3 (API level 15), GoogleAdMobAdsSdk v.6.4.1. I made separated project to import adsdk to xamarin, add to Metadata.xml attributes. This project…
Anton
  • 49
  • 3