I'm developing using a Sony Internet TV as a development device, which has 4 USB ports. All or no ports can be used with external hard drives. How can I select and access external memory vs internal memory on the device.
I'm able to access the SD card, or at least what the TV labels as the SD card using the following:
Environment.getExternalStorageDirectory();
But I can't seem to figure out how to find external USB devices. I've attempted to go down the path of the UsbManager class, but it seems as though there should be an easier and more general way. I just want to be able to see mass storage devices and don't want to have to clean through vendor id's etc. But maybe I'm missing something there.
This should be possible as I'm looking for the same functionality found by the Media Player app when opening the menu and selecting "Select device".
I only need read access to the drives, but read/write could be useful.
Thanks in advance.
/mnt/media/usb.XXXXX
something we as SDK developers can rely upon? I'm not aware that this is documented anywhere else. IOW, is this the sort of thing that, say, book authors should be perhaps including in books covering Google TV? :-) Thanks! – Norvell