Well I want to take a Photo and save it without the photo being shown from the gallery. this is the code I use:
File MiFotoTemporal = new File(RUTAFOTO+ NOMBREFOTO);
MiFotoTemporal.createNewFile();
Uri uri = Uri.fromFile(MiFotoTemporal);
Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
startActivityForResult(cameraIntent, requestCode_tomarFoto);