Instead of ACTION_IMAGE_CAPTURE
, try using MediaStore.ACTION_IMAGE_CAPTURE_SECURE
if you want to capture an image without directly requesting the CAMERA
permission. According to the Android documentation, ACTION_IMAGE_CAPTURE_SECURE
launches the secure camera app and doesn't require the CAMERA
permission, even if you've declared it in the manifest. This is particularly useful for apps that need to capture images in a more secure or privacy-conscious way.