I have a Nexus 6(Google Fi) I got an app that works on all other devices I tested but not on this one. Trying to create a directory or a file under this GetExternalStorageDirectory() is not working; I have tried mkdirs() as well. I cannot see the emulated/0 folder from my FileExplorer(on the phone) or from my PC(W10). And yes I do have the manifest permission for writing files. Using the following...
---Definition
public static String currentdirectory=Environment.getExternalStorageDirectory() + "/ADAK";
---Code snipplet
sd = new File(G.currentdirectory);
if (!sd.exists() && !sd.isDirectory()) {
if (!sd.mkdir()) {
G.WTL("Cannot create ADAK directory");
G.WTS(this, "Cannot create ADAK directory");
System.exit(0);
}
}