title: How to fix SyncContext.cs issue of TakePicture in Xamarin?
body: <p>I am using Cirrious.MvvmCross.Plugins.PictureChooser to take a picture in Android Xamarin platform.
  But when I cancel from picture screen instead of taking a picture, displays as shown below
  <a href="https://i.stack.imgur.com/Z4ofw.png" rel="nofollow"><img src="https://i.stack.imgur.com/Z4ofw.png" alt="enter image description here"></a></p>
  
  <p>And my app is crashed.
  Here is my code snippet.</p>
  
  <pre><code>CameraViewmodel.cs
  ...
  public System.Windows.Input.ICommand TakePictureCommand
  {
   get { return (_takePictureCommand = _takePictureCommand ?? new MvxCommand(() =&gt; TakePictureAsync())); }
  }
  ...
  
      private async void TakePictureAsync()
      {
        try
        {
          var stream = await _pictureChooserTask.TakePictureAsync(400, 95);
          var memoryStream = new MemoryStream();
          await stream.CopyToAsync(memoryStream);
          ... 
          //Add to view model
          CameraImageViewModel imageViewModel = new CameraImageViewModel(image, this);
          RaisePropertyChanged(() =&gt; HasPhotoBeenTaken);
          RaisePropertyChanged(() =&gt; CommentHintText);
        }
        catch (Exception ex)
        {
          throw new Exception(ex.Message);
        }
     }
  </code></pre>
  
  <p>Is there a way can I fix this issue?</p>