delete buttons ok / retry the intent of the camera

2

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);
    
asked by Sergio Cv 23.08.2016 в 12:14
source

1 answer

1

The problem is that the intent is to open the default application that the user has selected to "take pictures", therefore everything that happens since you launch the intent is out of your control until the other app returns the result. That's why you have different experiences on different devices since the application may have been modified by default or the user may have installed another application to take pictures.

The only way to control the experience would be to implement the same logic to take the photo, which is not terribly complex but you should consider if the effort is worthwhile for your project.

    
answered by 08.09.2016 в 17:36