Hey all-
I'm running into an issue with the MediaPicker on Android. To preface it, I've tried the solutions at https://forums.xamarin.com/discussion/32267/xlabs-2-0-0-pre91-android-mediapicker-selectphotoasync-crash , including manually importing the source for MediaPicker into my project from git, to no avail.
The exception is happening here. I have it wrapped in a try/catch and it doesn't throw the ex, and I have breakpoints under ContinueWith so it's not in there.
return await _mediaPicker.TakePhotoAsync(new CameraMediaStorageOptions { DefaultCamera = CameraDevice.Front, MaxPixelDimension = 400 }).ContinueWith(t =>
{
if (t.IsFaulted)
{
Status = t.Exception.InnerException.ToString();
}
else if (t.IsCanceled)
{
Status = "Canceled";
}
else
{
var mediaFile = t.Result;
ImageSource = ImageSource.FromStream(() => mediaFile.Source);
return mediaFile;
}
return null;
}, _scheduler);
and the Output is:
08-28 12:12:26.989 I/MonoDroid( 6017): UNHANDLED EXCEPTION:
08-28 12:12:27.036 I/MonoDroid( 6017): System.MissingMethodException: Method 'BaseBundle.GetBoolean' not found.
08-28 12:12:27.037 I/MonoDroid( 6017): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) [0x00011] in /Users/builder/data/lanes/1978/f98871a9/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.App.Activity.cs:2707
08-28 12:12:27.037 I/MonoDroid( 6017): at (wrapper dynamic-method) object.9c8ab114-9993-4aee-b950-6ac725746fad (intptr,intptr,intptr)
Does anyone have any ideas? I'm relatively new to Xamarin, and green when it comes to XLabs, so any help would be greatly appreciated!