[Mono-list] Monodroid + emulator

Jonathan Pryor jonpryor at vt.edu
Mon Dec 5 14:23:55 EST 2011

On Nov 22, 2011, at 11:02 AM, sebi77 wrote:
> I'm writing an app for an Android tablet, so I need larger resolution then
> the default. I set up a 1024*768, 2.2 Android emulator, and I deleted the
> "Abstracted LCD density" property, because it spoils the size of my bitmaps.
> It works fine with Eclipse+Java, but with Monodevelop the app doesn't fit
> the screen, only cc. the half of it. What's wrong? Thx!

A more appropriate list would be:


That said, the problem is a feature -- Mono for Android automatically generates a <uses-sdk/> element and sets the minSdkVersion attribute to the TargetFrameworkVersion you compiled against. The default Java project, meanwhile, will not.

Result: you're automatically "opted in" to the "new", "no automagic scaling" support introduced in Android 1.5 (API level 3!):


	"Starting with Android 1.6 (API Level 4), Android provides support for multiple screen sizes and densities, reflecting the many different screen configurations that a device may have."

You can override this behavior by adding a <uses-sdk/> without any attributes to your Properties\AndroidManifest.xml file (which will override the default behavior).

 - Jon

More information about the Mono-list mailing list