Why new folder creates in Internal Storage instead of External Storage?
I tries to create a new folder in External storage SD Card. Using this code:
val folderMain = "NewFolder"
val f = File(Environment.getExternalStorageDirectory(), folderMain)
if (!f.exists()) {
f.mkdirs()
}
and this permission:
But after executing this code It creates a new folder in Internal storage. Here is the screenshot of Internal Storage:
https://i.stack.imgur.com/b1toa.png▾
While External...