Я использую собственную камеру для Android и сохраняю файл в папке с данными приложения (/mnt/sdcard/Android/data/com.company.app/files/Pictures/). В то же время пытая копия фотографии сохраняется в папке DCIM.
Это мой код:
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
String formattedImageName = getDateString() + ".jpg";
File image_file = new File(this.getExternalFilesDir(Environment.DIRECTORY_PICTURES), formattedImageName);
Uri imageUri = Uri.fromFile(image_file);
intent.putExtra(MediaStore.EXTRA_OUTPUT,imageUri);
startActivityForResult(intent, REQUEST_FROM_CAMERA);
Как предотвратить сохранение дополнительной копии изображения в папку DCIM?
Большое спасибо