Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
According to the docs, the ScreenSize and SmallestScreenSize values are missing from the Android.Content.PM.ConfigChanges enum
They exists only in higher API Level (note that they were introduced at API Level 13).
I assume that you are not seeing those enum values because your TargetFramework is lower than that.
I believe this is still an issue.
It's true that these settings were introduced in API 13, but, if the project is targeting at least API 13, even if minimum is lower, these settings should be available.
I do have such a scenario, and currently have to use force fast the value
ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.KeyboardHidden | (ConfigChanges)0x0400
My minimum is API 10 but target is API 15.
layoutDirection (0x2000) is also missing.
@Goncalo: Are you using MonoDevelop or Visual Studio?
MonoDevelop allows separately specifying the minimum SDK and the target SDK within the IDE; Visual Studio does not (Bug #6221). Visual Studio thus requires hand-editing the AndroidManifest.xml to specify the minimum SDK version when it doesn't match the target SDK version.
I'm using Visual Studio (2012 - but behavior was the same with 2010).
I do have a manifest file, where I specify the minimum and target versions.
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="15" />
> I 'm using Visual Studio
What's your $(TargetFrameworkVersion)? Specifically, if you view your Project Properties and go to the Application tab, what is the Minimum Android to target?
Despite the fact it has "Minimum" in the label, this is the $(TargetFrameworkVersion) (and provides the default //uses-sdk/@android:targetSdkVersion value if not otherwise provided). $(TargetFrameworkVersion) controls which Mono.Android.dll is used for compilation. If this is set to Android 2.2 (the default), then the compiler will not show you members added after API 8.
If you want to use members added in API-13, you need to set $(TargetFrameworkVersion) ("Minimum Android to target") to Android 4.0.