I need to create a folder "BEAM" on the SD card, but it says to me that the folder cannot be created.
I used this code:
File mediaDir = new File("/sdcard/beam");
/ / Create a folder if not exists
if (!mediaDir.exists()) {
mediaDir.mkdir(); // this code return false
}
Is folder "beam" protected?
I have also this Android permission:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />