This is my code:
boolean success = false;
Log.d(TAG, Environment.getExternalStorageDirectory() + \"/\" + Environment.DIRECTORY_PICTURES + \"/myFolder\" );
my
You should Use This Permission in your mainfest file.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
I'm not sure just try to create folder like below -
success = myFolder.mkdirs();
instead of
success = myFolder.mkdir();
as per mkdirs() And, don't forget to add the below permisstion into your manifest file.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Also have a look at this answer - How to create directory automatically on SD card