+ 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 Answer
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)
Hot today
Python — File Handling
2 Votes
What’s wrong?
2 Votes
Question is write a c program to print prime numbers up to n and print the largest number in array.
1 Votes
Achievements on Sololearn
1 Votes
Question - Java: Pyramid layers
2 Votes
Error in Program
1 Votes