I am trying to get my tablet(XOOM) work with my usb device.
However, as I created a test program based on the adbtest sample code [here]http://developer.android.com/resources/samples/USB/AdbTest/index.html and tested it, it could find the connected usb device if I do this: for (UsbDevice device : mManager.getDeviceList().values()) , but it could not open the device.
Another really weird thing is that as a broadcast receiver was created as shown in the adbtest code, the detach and attach action should both be detectable, but only detach action could be detected. Whenever I removed the usb device from the tablet, the detach event could be trigger, but attach event is never trigger. How come this happens? (In the filter.xml file, I just specified the correct vendor Id to filter out the unwanted devices).
Apart from that, if I plugged a mass storage usb device into the tablet, or detached the storage device from the tablet, or do this for (UsbDevice device : mManager.getDeviceList().values()) to find the existing devices, nothing happened.
Any guy knows the reason for this? Thanks!!