I rooted my device and working in host mode. I can able to detect the usb device connected to my tab but Am having two questions.
1) i try to display my device name usi
Code above works fine for most of the devices except Samsung mobile devices. For making them supply Language ID else you will get stall.
int rdo = connection.controlTransfer(UsbConstants.USB_DIR_IN
| UsbConstants.USB_TYPE_STANDARD, STD_USB_REQUEST_GET_DESCRIPTOR,
(LIBUSB_DT_STRING << 8) | idxMan, 0x0409, buffer, 0xFF, 0);