Stack Overflow archive
0 score

Best way to know sd card Path Android

score
0
question views
759
license
CC BY-SA 3.0

This is always the best approach:

java
Environment.getExternalStorageDirectory();

You could also get the environmental variable which is on all Android devices like this:

java
String sdcardPath = System.getenv("EXTERNAL_STORAGE");

Originally posted on Stack Overflow. Public user contributions are licensed under Creative Commons Attribution-ShareAlike.