+ 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.

12th Apr 2019, 9:48 AM
ariamossar
ariamossar - avatar
1 Odpowiedź
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)
20th Apr 2019, 8:20 PM
Niwo
Niwo - avatar