I'm trying to solve the problem with creating directory on Android device. I noticed that some third party apps create catalog on internal directory /storage/emulated/0/Android/data which. How It can achieved? Here's my piece of code, but It doesn't work :
if(FileUtils.isExternalStorageAvailable() && FileUtils.isExternalWritable()){
File path = new File(Environment.getExternalStorageDirectory() +"/Android/data/reports");
Log.d("DEBUG", Environment.getExternalStorageDirectory() +"/Android/data/reports");
if(path.mkdirs()){
Toast.makeText(getActivity(), "catalog created", Toast.LENGTH_LONG).show();
}
}
Thanks For Help, Regards