Search code examples
androidusbandroid-4.0-ice-cream-sandwich

Android 4.0.4 device - Shows no USB Devices when there are


usb_manager = (UsbManager) getSystemService(Context.USB_SERVICE);
HashMap<String, UsbDevice> deviceList = usb_manager.getDeviceList();

& deviceList.size() is 0

Am I doing something wrong? The device clearly has an USB port, but can't find it. Can this be a permission issue?

Is there a possibility that the USB port could not be used in the SDK ?

(Android 4.0.4)


Solution

  • Is there a possibility that the USB port could not be used in the SDK ?

    Yes. It looks as if your device supports USB OTG, but not the API. This is the case for most cheap tablets.