I use this code to create folder.
File folder2 = new File(Environment.getExternalStorageDirectory() + "/Android");
if (!folder2.exists()) {
folder2.mkdir();
}
File folder = new File(Environment.getExternalStorageDirectory() + "/Android/MyFolder");
boolean success = true;
if (!folder.exists()) {
success = folder.mkdir();
}
It is working with other devices but not with android v7.0.
I changed and tried with .getAbsolutePath() and .getPath(), but these changing also success on other devices ,7.0 still not yet.
And aslo there was enough permissions on manifest
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Please help me. Thank you for reading.