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

async / await in .NET 4.5 PCL targeting Mono for Android?

I'd like to make a Portable Class Library (PCL) version of a .NET 4.5 library capable of targeting Mono for Android. This library also makes heavy use of async / await. I understand that the latest Xamarin Preview release includes support for async…
HolySamosa
  • 9,011
  • 14
  • 69
  • 102
4
votes
1 answer

xamarin support in Add Portable Class Library dialog

What are the steps required to make the two items available in the Add Portable Class Library dialog?
4
votes
1 answer

MvvmCross - Android: How to perform App initialization on Main Thread

I have an Android application using MvvmCross. The App launches via an MvxSplashScreenActivity as the main launcher and I provided a setup class deriving from MvxAndroidSetup. It seems however that my MvxAndroidSetup.CreateApp() override is called…
Johannes Rudolph
  • 35,298
  • 14
  • 114
  • 172
4
votes
1 answer

adding $ANDROID_HOME/tools to $Path in windows

I'm trying to run this code: cd google-play-services_lib android update project -p . ant debug from this tutorial. I installed ant using winant, but regarding Android, I can not add this to path. I tried adding the variable like this screen shot,…
Husein Behboudi Rad
  • 5,434
  • 11
  • 57
  • 115
4
votes
1 answer

json parsing with xamarin android

I wrote a code to parse json string in my android xamarin app. var request = HttpWebRequest.Create(myUrl); request.ContentType = "application/json"; request.Method = "GET"; using (HttpWebResponse…
Bijoy K Jose
  • 1,342
  • 3
  • 15
  • 26
4
votes
1 answer

Monodroid: Performing a full GC

I try to create my small particle system. I have ParticleManager with list of Particles and draw my particles on canvas. I create any new objects like Paint and etc once just in init() function! If particle size is < 0, I remove it: for (int…
Leo
  • 3,003
  • 5
  • 38
  • 61
4
votes
1 answer

MvvmCross - Calling Web Service from View Model

I'm new to MvvmCross and Android development. I have a need to call to POST data to a JSON web service in my view model. I then need to display the result of the web service back in my UI. The gist of my view model looks like the following: public…
SPA Developer
  • 221
  • 5
  • 13
4
votes
2 answers

App-Icon Create an Overlayinformation (Number)?

How can I clone this behaviour (iOS) on an Android-App? Technically its definitly possible as I have an app by my own on my Androidphone - its an Email-App with a very similiar indicator on the Icon. (shows the number of unread Emails)
eMi
  • 5,540
  • 10
  • 60
  • 109
4
votes
1 answer

Mono for Android / MonoTouch System.Net.WebException: Request aborted

When I use the following code for a request to a FTP server. If the request failed I get an error. I don't know why. Code: try { FtpWebRequest request = GetFtpWebResquest(WebRequestMethods.Ftp.ListDirectoryDetails, shareInfo.Uri); …
wouTec
  • 140
  • 9
4
votes
4 answers

Why is my MonoDroid/Xamarin.Android project suddenly giving me a "'java' exited with code 1." error?

While working on my MonoDroid/Xamarin.Android app, it suddenly stopped building, telling me "java" exited with code 1. After turning on normal MSBuild output verbosity, it showed that the error occurred in Xamarin.Android.Common.targets, located in…
ZAD-Man
  • 1,328
  • 23
  • 42
4
votes
2 answers

Using Novell.Directory.Ldap in Mono (For Android and Touch)

I want to use the Novell.Directory.Ldap library in a MonoTouch and Mono For Android project. http://www.novell.com/coolsolutions/feature/11204.html When I compile my project in iOS simulator modus, It compiles without errors and runs correctly (in…
StackFlower
  • 691
  • 1
  • 13
  • 29
4
votes
1 answer

GetResponse running in Task.Factory.StartNew

I want a webrequest running in a background thread, and then for the callback to be handled in the UI thread. Here is my code: Task.Factory.StartNew(() => { Console.Out.WriteLine("Start the request"); return…
Sunkas
  • 9,542
  • 6
  • 62
  • 102
4
votes
2 answers

MonoTouch: creating multiplatform apps using Portable Class Libraries

My scenario: trying to port a small part of an application created by our company from native code (ObjC for iOS / Java for Android) to C-Sharp. The project will interact with our webservices. Goal of this project is figuring out how feasible it is…
4
votes
1 answer

System.Security.Cryptography.Xml in portable class library?

I'm using a licensing tool (Rhino.Licensing) that uses signed XML files as licenses. Since the System.Security.Cryptography.Xml namespace is not available on varios platforms (like MonoTouch and Mono for Android, etc) its not possible to validate a…
dna
  • 1,498
  • 1
  • 14
  • 35
4
votes
1 answer

Using embedded RavenDB cross-platform - .NET/Mono/MonoTouch/MonoDroid?

How can i use embedded RavenDB on all major .NET platforms (.NET >= 4.0, Mono, MonoTouch, Mono for Android, [WinRT, MonoGame, etc]). It it planned to support the embedded version cross-platform official in the future? If yes: when?
dna
  • 1,498
  • 1
  • 14
  • 35