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

Protobuf-Net fails on Monodroid with InvalidOperationException in release mode

Building a Monodroid application we've been using Protobuf-net for serialization. It works in debug mode when fast deply is turned on, however once we switch to release mode it fails with the following exception: ex…
dmck
  • 7,801
  • 7
  • 43
  • 79
3
votes
3 answers

Monodroid - Monodevelop wipes user data while deploying to device

Using Mono for Android, Monodevelop 2.8.6.5 Deploying to real device (like to emulator too) always wipes user data (files, shared preferences, sqlite tables, etc). Is there any way to prevent it? This problem was solved for Visual Studio here (…
PVoLan
  • 1,041
  • 2
  • 12
  • 24
3
votes
4 answers

C# void equivalent for template parameters

The context of my question is that I'm using MonoDroid to write a program to consume WCF services. I wanted some of the C# libraries regarding SOAP in C# so MonoDroid was an obvious choice. I am stuck trying to pass void as template parameter to…
SmashCode
  • 4,227
  • 8
  • 38
  • 56
3
votes
1 answer

MonoDroid SurfaceView

I am finding very little information on the subject for Mono. I need a drawable area with which to capture signatures. Been trying to use this, but am a little lost. Not sure whether my class is to extend SurfaceView or just create a SurfaceView…
jmease
  • 2,507
  • 5
  • 49
  • 89
3
votes
3 answers

Algorithm to vertically flip a bitmap in a byte array

I am writing a class for printing bitmaps to a portable bluetooth printer in Android via Mono For Android. My class is used to obtain the pixel data from the stream so that is can be sent to the printer in the correct format. Right now the class is…
dmck
  • 7,801
  • 7
  • 43
  • 79
3
votes
2 answers

Mono for Android or Java and WCF

I am currently using Mono for Android to develop a mobile application. I have been trying to consume a WCF web service by adding a web reference to it but I can't seem to make the call that way. I am now considering to bite the bullet and rewrite…
nnyamhon
  • 155
  • 1
  • 10
3
votes
2 answers

Environment.ExternalStorageDirectory for internal/sdcard

What exactly does Environment.ExternalStorageDirectory return? I read from the developer docs: Note: don't be confused by the word "external" here. This directory can better be thought as media/shared storage. It is a filesystem that can hold a…
Matthew
  • 4,832
  • 2
  • 29
  • 55
3
votes
1 answer

Swipe between tabs ics style using mono for android?

I'm looking for an example how to swipe between tabs using mono for android. Unfortunately I can't seem to find what I'm looking for. I would really appreciate any help pointing me in the right direction.. ? This is what I'm trying to…
Nordis
  • 733
  • 2
  • 9
  • 31
3
votes
2 answers

Does or will monodroid support async await?

I've written an app in wp7, handling most of the asynchroneous tasks with await. I was asked to look into porting it to Android. Fortunately I have MonoDroid at hand, so I don't have to dust off my Java. But I just realized, I cannot reuse my code,…
TDaver
  • 7,164
  • 5
  • 47
  • 94
3
votes
3 answers

Converting Java to C#: Declaring interface and creating an instance?

I am converting some java code C# for use in my MonoDroid application. I have some snippets where interfaces are declared and then initialized in to objects. I am not 100% sure on the best approach to implement these in to C#. For example: public…
startupsmith
  • 5,554
  • 10
  • 50
  • 71
3
votes
2 answers

Mono for Android - How to speed up debugging?

I am using Mono for Android and I a like it so far. My only concern is that debugging projects is very slow. When I start debugging in Visual Studio sometimes it takes 4-5 seconds to move from one breakpoint to the next one. It seems the debugger…
Jeno Laszlo
  • 2,023
  • 18
  • 36
3
votes
1 answer

Is there a way to use ProGuard with MonoDroid?

Our development team just (mostly) finished an Android app using MonoDroid in Visual Studio. Because it has to do with banking, we wanted to try to obfuscate it in order to add some security against anyone trying to decompile it. Initially, I…
Luke
  • 648
  • 7
  • 15
3
votes
1 answer

Monodroid Intent Service's BroadcastReceiver not firing OnReceive

I've been attempting to get a toy intent service running for monodroid essentially going off of this source material and I've been having some issues and I've gotten it down to the broadcast receiver. More than anything I'm suspicious of the…
Terrance
  • 11,764
  • 4
  • 54
  • 80
3
votes
1 answer

Errors on Monodroid 4.0 using googlemaps

I'm trying to run the samples of xamarin about googlemaps, and the MapsDemo sample doesnt work. I'm trying to run on the Google APIs (Google Inc.) - API Level 8 emulator, it throws me this error: Couldn't get connection factory client, and when im…
JMGH
  • 234
  • 4
  • 12
3
votes
1 answer

Monodroid Tab Layout sample project does not seem to work

I'm struggling with the Tab Layout example shown at Xamarin's website. I've created the state-list drawable xml files and copied the icons to my drawable directory as described there, but I have trouble with the OnCreate method. The OnCreate method…
Adrian Grigore
  • 33,034
  • 36
  • 130
  • 210
1 2 3
99
100