So i ended up doing it with .exists()
String abcd = "is it working ?";
File pathimg = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);
File testimg = new File (pathimg, "100MEDIA/");
if (testimg.exists()){abcd = testimg.toString();}
else {
File testimg2 = new File (pathimg, "100ANDRO/");
if (testimg2.exists()){abcd = testimg2.toString();}
else {
File testimg3 = new File (pathimg, "Camera/");
if (testimg3.exists()){abcd = testimg3.toString();}
else {
File testimg4 = new File (pathimg, "100LGDSC/");
if (testimg4.exists()){abcd = testimg4.toString();}
else {
abcd = "It's not working";
}
}
}
}
On my G2 with the folder "100LGDSC" it's working.