0
I have the following problem I have an app, which takes photo however and Torola device is recording in the gallery in addition to record in the folder I said it would.
Intent photo = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
photo.putExtra("outputFormat",Bitmap.CompressFormat.JPEG.toString());
File file = new File(...função retorna pasta);
Uri photoURI;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
//proveder
} else {
photoURI = Uri.fromFile(file);
}
photo.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
photo.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
photo.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);
Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);
startActivityForResult(photoPickerIntent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);
has some flag or shape that I pass to the Internet and the soft camera does not record in its default folder and only in mine that was set
Make sure the photo is saved in two folders?
– ramaral
If I delete from one and in the other, one records with the name of the default camera img_[time_time], while the temp folder created saves with the default name.
– Bruno H.
in ASUS was normal it did not record, for now only was noticed on Motorola
– Bruno H.