Confirm camera button does not work

0

The code that I implemented to get a captured image from the camera does not work, the camera opens and I can capture the image, but when I confirm nothing happens

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
File f = new File(Environment.getExternalStorageDirectory(), "Teste01.jpg");
intent.putExtra(MediaStore.EXTRA_OUTPUT, FileProvider.getUriForFile(FlagrasCadastro.this, "com.msc.bancodedados.fileprovider", f));
startActivityForResult(intent, CAMERA);

I have already tested the emulator and the actual device, but it does not work and it does not show any error, can anyone help me?

    
asked by anonymous 22.07.2018 / 22:38

0 answers