I connected a USB drive to my phone and I used
getExternalFilesDirs("");
to find all directories, including sdcard and USB.
The path to the SD card comes out correctly, but the USB function is not called by the function.
In any case, find the relative USB path instead of the absolute path?
I got stuck in this problem for several weeks but received nothing.
source
share