Thanks in advance for the help. Here is the issue that i am facing while creating my first app.
I am making app in which user have an option to take image from gallery or camera, when importing image from gallery the app is working as desired, but when image is taken from camera the 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);