I'm creating an app in which I got one button and when clicking on it, I open the default camera app of the device using the following code:
ActivityResultLauncher<Intent> activityResultLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> {
if (result.getResultCode() == RESULT_OK) {
//do sth;
}
});
Intent pictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
activityResultLauncher.launch(pictureIntent);
So in this case I am using MediaStore.ACTION_IMAGE_CAPTURE passed to the Intent and this allows me to take a picture and get the result back with the help of ActivityResultLauncher.
Now, Is there any way to change the default settings of the default app of Camera by passing some specific parameters for example, image size, etc..?
This is the screen that I get when opening the default camera app, so Is there any way to hide one of the buttons above or at least make it un-clickable?
