<How to create a new folder in root of SdCard on A...
# stackoverflow
u
How to create a new folder in root of SdCard on Android? I want to create a new folder in Root or main page of SdCard. I have use this method to get SdCard location: File("/storage/sdcard1", "New folder") But this method didn't work on some devices. I need an method that work on all devices and get SdCard location. I have also tried : File(Environment.getExternalStorageDirectory(),"New folder") But this method target device storage. But I want SdCard.