When I run the intent to take the picture, the camera opens. When making the photo, it asks me for confirmation with an ok and a retry, the weird thing is that it only asks me in an adnroid 6.0.1 (Samsung S6), in an andorid 4.3 (sony xperia v) no, it does the photo, save it and it ends.
Well, I would like exactly what happens in the Xperia, that I would make the photo and it would end, not that I need to confirm that the photo has gone well.
I attached the code with which I call the camera:
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File tarjeta=Environment.getExternalStorageDirectory(); String filePath = tarjeta.getAbsolutePath()+File.separator+"Reuniones"+File.separator+String.valueOf(id2) +File.separator+"fotos"+File.separator+ generarNombreFoto(); Uri output = Uri.fromFile(new File(filePath)); intent.putExtra(MediaStore.EXTRA_OUTPUT, output); startActivityForResult(intent, 5);