I am developing using Sony Internet TV as a development device having 4 USB ports. All or no ports can be used with external hard drives. How can I select and access external memory and internal memory on a device.
I can access the SD card or at least that the TV stickers as an SD card using the following:
Environment.getExternalStorageDirectory();
But I canβt figure out how to find external USB devices. I tried to follow the path of the UsbManager class, but it seems that there should be a simpler and more general way. I just want to see mass storage devices and don't want to clean them through a vendor identifier, etc. But maybe I donβt see something there.
This should be possible, since I'm looking for the same functionality that Media Player found when I opened the menu and selected "Select device."
I only need read access to the disks, but read / write can be useful.
Thanks in advance.
source share