+ 4
How to get the path of SD CARD in Android Studio?
The code --> Environment.getExternalStorageDirectory() -- get the path of the INTERNAL storage of the device, not the SD CARD.
1 Respuesta
0
The SDcard is an external storage, so you can't use your method. You can try
File[] getExternalFilesDirs(String type)
You can red more here:
https://developer.android.com/reference/android/content/Context.html#getExternalFilesDirs(java.lang.String)