This is my code:
boolean success = false; Log.d(TAG, Environment.getExternalStorageDirectory() + \"/\" + Environment.DIRECTORY_PICTURES + \"/myFolder\" ); my
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.
Also have a look at this answer - How to create directory automatically on SD card