I'm trying to get a List of external storages on android devices and in some devices the instruction System.getenv("SECONDARY_STORAGE");
returns null
although the sd card is mounted in the device (4.1.1).
I'm using the Dimitriy solution to do this and works fine but in some devices I'm having this problem.
Someone know in what cases System.getenv("SECONDARY_STORAGE")
can return null
?
Thanks a lot