Thank you in advance. Here is the problem that I have to face when creating my first application.
I am creating an application in which the user has the opportunity to take an image from the gallery or camera, when importing the image from the gallery, the application works as desired, but when the image is taken from the camera, intent returns null .
Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri); startActivityForResult(cameraIntent,YOUR_SELECT_PICTURE_REQUEST_CODE);
source share