0

Android-TV has 2 or more USB ports. I need to list out the available usb driver name. User can choose any one of the USB device name, I want to list out the list of file by usb name selection.

Ravi
  • 34,851
  • 21
  • 122
  • 183
  • First I need to listout available external device elements.How to list out available external memory elements –  Jan 22 '14 at 05:32
  • duplicate of http://stackoverflow.com/questions/8115317/how-can-you-access-external-memory-on-google-tv – libeasy Jan 22 '14 at 10:48

1 Answers1

0

Have a look at this link

especially the code

UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
...  
HashMap<String, UsbDevice> deviceList = manager.getDeviceList();
UsbDevice device = deviceList.get("deviceName");

Please note that you will need the necessary permissions in your Manifest.

See Manifest Requirements

Scary Wombat
  • 44,617
  • 6
  • 35
  • 64