I am actually able to capture a photo and to save it in android external storage DCIM folder.
My problem is that I can't create a new folder in it, so DCIM/MyPic.jpg became DCIM/MyFolder/MyPic.jpg.
Here is my source code :
File f = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM), "address");
if (!f.exists()) {
f.mkdir();
}
File file = new File(Environment.getExternalStorageDirectory()
+ File.separator
+ "DCIM"
+ File.separator
+ "address"
+ File.separator
, "IMG_001.jpg");
Notice that I correctly asked for WRITE_EXTERNAL_STORAGE permission in manifest.
The intent part to capture photo is fine, because I can save it directly to DCIM.
I do not get any error message, but nothing happens... no 'address' folder created :(
Thanks for help :D