Preview 3


This preview has a new shared runtime. To ensure you are using it, you will need to delete the old shared runtime from your emulator/device:

Settings -> Applications -> Manage Applications -> MonoDroid Runtime -> Uninstall

The new runtime will be deployed to the device the next time an application is deployed.

Bug Fixes / Enhancements

  • 638437 - Activity.OnActivityResult() takes int, but should be Android.App.Result
  • 638972 - .mdb file from class library project is not copied to output directory
  • 638500 - Remove Android.Runtime.Logger?
  • 638714 - LocalReference to IRunnableAdapter not getting released
  • 638716 - DeleteLocalRef warning for CharSequence
  • 638998 - Can't subclass BaseAdapter, monodroid.exe complains getView is not overridden
  • 633146 - MonoDroid Projects do not appear in the German Edition of VS.NET 2010
  • 639499 - MonoDroid errors not visible in the output Window
  • 632611 - Application name is that of the activity class, not specified name
  • 633675 - Compiling a ArrayList adapter produces incorrect intermediate java code
  • 638708 - monodroid exited with code 1 in release mode
  • 631301 - Support for XML Activation of managed subclasses
  • 637192 - R.cs needs to be clearly marked as "generated by a tool"
  • 638769 - Move R.cs to R.designer.cs in Resources folder

Breaking API Changes

On top of the usual bug fixes, we are slowly making changes to the Mono.Android API to make it more .NET-ish and easier to use. Unfortunately, as pre-release users, this means you may be forced to change your code to the new API.

[Activity] Attribute

In previous releases, monodroid.exe would generate <activity/> elements within AndroidManifest.xmlfor all Activity subclasses. This is no longer the case.

We are trying to remove any need to manually edit the AndroidManifest.xml file. This release adds support for an ActivityAttribute attribute that allows you to specify the options you want to end up in the <activity/> element of the manifest file, and monodroid.exe will only generate <activity/> elements for types with the [Activity] attribute.

See for details.

If you find a case where you cannot get the desired results for AndroidManifest.xml with the [Activity] attribute, please let us know.

R class -> Resource class

The autogenerated "R" class is now called "Resource" to match .Net conventions.

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.