title: Why can't I get result from camera intent?
body: <p>This is really strange. My code works fine on one device (MOTO G5S with Android 7) but doesn't on another one (Galaxy S9 with Android 9).</p>
  
  <p>I want to take a picture and this is my code for that:</p>
  
  <pre><code>private void takePicture(int file_id) {
  
      camFileId = file_id;
  
      Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE_SECURE);
      File file = new File(wrkDir + currFullImageDir + "/" + file_id + ConstValues.IMG_FILE_EXTENSION);
      Uri uri = FileProvider.getUriForFile(context, context.getPackageName() + ".provider", file);
      intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, uri);
      ((Activity) context).startActivityForResult(intent, ConstValues.CAM_REQEST_CODE);
  }
  </code></pre>
  
  <p>Starting Camera Intent works on both devices. But on the MOTO G5S, when a picture is taken, there is a button to accept or discard the picture. On the S9, there is nothing like this. When a picture is taken, the camera intent does not return at all. If the back button is pressed, it returns but within the <code>onActivityResult(..)</code> my data is null (of course).</p>
  
  <p>Am I doing anything wrong or is there anything especial for the S9?</p>