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.
This is a regression from our stable XA 4.14, attempting to reference the ActionBar of an Activity returns null.
Steps to repro:
1. Create a new hello world template
2. Add the following code to your OnCreate method.
> var bar = this.ActionBar;
*** Bug 21957 has been marked as a duplicate of this bug. ***
The problem is that Activity.ActionBar requires that //uses-sdk/@android:minSdkVersion be >= 11 in order to return a non-null value, and monodroid/bd3dc412 altered the minSdkVersion algorithm to always emit "4" (unless overridden in Properties\AndroidManifest.xml) INSTEAD OF $(TargetFrameworkVersion).
Meaning that ActionBar is now unusable in the default config.
Fixed in master/1c78098c and monodroid-4.16-series/280e58c0.
*** Bug 21965 has been marked as a duplicate of this bug. ***
Today, I have checked this issue with following builds:
XS 5.3(build 421)
Device info: Samsung Note3 V 4.4.2
I have followed the steps mentioned in Bug description, after adding the line var bar = this.ActionBar; in OnCreate method of Android template. Application is running successfully on device without any exception.
Hence closing this issue.