I've been developing an app on nougat that creates a directory in the external storage.
I used to do it like this:
final File dir = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/Chords/Processed Audio");
dir.mkdirs();
This code does not seem to work on API 26 (Android Oreo). The directory is not created.
How can I achieve the same thing, preferably that works on all android version from API 21 to API 26?