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.
There is a bug in MediaPicker for Android. It's not on every device, however it's on every application that use latest MediaPicker from Xamarin. I test it on CameraAppDemo on LG-P760 (4.1.2) and it was crashing every time. From the other hand on others devices like HTC it was working ok, maybe because there is other information from device about orientation.
So start CameraAppDemo on LG-P760 (4.1.2). Then click on button to make picture and go to Media.ActionImageCapture. You will be able to make picture. Next rotate mobile on landscape, make picture and before accept picture rotate mobile to inverse landscape. Then accept. You will move back from image capture activity, but without picture / any information from Camera activity.
Thanks for reporting this. I believe this bug was fixed in some later version of the Mobile API.
I also just wanted to point out the Mobile API is being deprecated in favor of various plugins (which have the equivalent/same API):
- Contacts: https://www.nuget.org/packages/Xam.Plugin.Contacts
- Geolocator: https://www.nuget.org/packages/Xam.Plugin.Geolocator
- Media: https://www.nuget.org/packages/Xam.Plugin.Media
This plugin model has several advantages:
- Each plugin is independent, and can be updated as such
- It is no longer an all-or-nothing package
- Plugins can be mixed/replaced with other plugins that offer similar features
Thanks for using the Mobile API, and we hope that the new plugin model will enable you to produce even better mobile apps.