https://developer.android.com/training/camera/photobasics.html
I followed example of Google but using:
File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
I have my photo in Picture folder but my device do save an other copy of the photo in DCIM folder (with different timestamp). eg: i got a photo My_prefix_20180122_171255.jpg in Picture and an other IMG_20180122_171300.jpg in DCIM. How to avoid this?
(Tested on Android 4.4, Android 6.0.)
Thanks.