Is there a reliable way of finding out the external SD card folder on Android devices? (KitKat and later)
My understanding is that from KitKat onward you can use getExternalFilesDirs(null) to get the list of usable storage including secondary SD cards.
However on a Lenovo A3500 tablet with an SD card inserted, getExternalFilesDirs()
only returns one entry "/storage/emulated/0/Android/data/<app>/files"
. Going through a file manager one can see both "/storage/sdcard0"
(internal flash) and "/storage/sdcard1"
(external SD card) but the secondary SD is not available in the list of one entry returned by getExternalFilesDir()
.
Do some manufacturers decide not to export the SD folder via that standardised API? Are other methods better to reliably find additional storage on a device?
Device is Lenovo A3500 with Android 4.4.2