Skip to content Skip to sidebar Skip to footer

Unable To Create A Folder Programatically

Below is the code that I'm using String root = Environment.getExternalStorageDirectory().getAbsolutePath().toString(); File filepathname = new File(root+'/newfolder'); if(filepath

Solution 1:

In my opinion you dont have rights to create folder. If your application target is 23 or above you have to read about new runtime permissions.

Here you can find official documentation about it.

Post a Comment for "Unable To Create A Folder Programatically"