title: Xamarin.Android 12 - Samsung Galaxy Tab crashes when taking images
body: <p>In my app I'm taking pictures like this:</p>
  <pre><code>  public void OpenCam()
      {
          // Standard
          Intent intent = new Intent(MediaStore.ActionImageCapture);
  
          _newFile = new Java.IO.File(Storage.Instance.TmpImageFilePath);
  
          intent.PutExtra(MediaStore.ExtraOutput,
              FileProvider.GetUriForFile(Context, Context.PackageName + &quot;.provider&quot;, _newFile));
          intent.AddFlags(ActivityFlags.GrantReadUriPermission);
  
          StartActivityForResult(intent, TakeImageRequest);
      }
  </code></pre>
  <p>after taking a picture and and confirm the taken picture with ✓ in the photo app,
  <strong>OnActivityResult</strong> is called and I can work with the data.</p>
  <p>This worked fine for a few years.</p>
  <p>Now, on my <strong>Samsung Galaxy Tab7 FE - Android 12</strong>, <strong>every ~third attempt fails</strong>. The app crashes on clicking the round button to take a picture (that's the moment when the Visual Studio debugger stops). No error, no exception, OnActivityResult is not called.</p>
  <p><code>logcat</code>: (orange marked is my app package name)
  <a href="https://i.stack.imgur.com/z2H4b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z2H4b.png" alt="enter image description here" /></a></p>
  <p>and right before:</p>
  <pre><code>06-03 09:06:33.670  Samsung SM-T733 Info    1200    ActivityManager Process MYAPP (pid 28306) has died: prev LAST(511,287)
  </code></pre>
  <p><strong>Edit:</strong>
  Devices I could test without this problem:</p>
  <ul>
  <li>Huawei P30 lite (Android 8)</li>
  <li>Huawei P30 Pro ( Android 10)</li>
  <li>Samsung A52s 5G (Android 12)</li>
  <li>Huawei Mediapad M5 lite (Android 8)</li>
  </ul>