Hi Anil, I have the same problem with Xoom and I have to say its fault of Motorola devs because I have created application depending on this for Acer Iconia A500 and it works great but In Xoom I have no usb device listed nor any intents received after plugging in usb device.. :// I use code similar to yours.
mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE); HashMap<String, UsbDevice> deviceList = mUsbManager .getDeviceList(); Log.i(TAG, "Device list size " + deviceList.size()); Iterator<UsbDevice> deviceIterator = deviceList.values().iterator(); while(deviceIterator.hasNext()){ UsbDevice device1 = deviceIterator.next(); Log.i(TAG, "Device name: " + device1.getDeviceName() + " Device vendor: " + device1.getVendorId() + " Device productId: " + device1.getProductId()); } Please let us know If you found a solution or at least a ROM/kernel which supports this, because I had to switch development from A500 and now its a pain to work with XOOM :/ On Sep 23, 4:27 pm, Anil Sasidharan <anil...@gmail.com> wrote: > Hi All, > > I'm trying to get the USB Host API (introduced in sdk-version 12) working > with the Motorola XOOM tablet. > > The details of the tablet are as follows: > Model: MZ601 > Android-version: 3.1 > Firmware configuration version: GAS_ASIA_USAEVRSTURTIRD_P035 > Build-number: H.6.3-25-5 > > We are using a custom USB cable > (ref:http://www.youtube.com/watch?v=COkLEJGo6vo) to convert the micro-B port > of > the tablet to work in USB host mode. This has been tested with USB mouse and > it gets detected (we are able to navigate through the screens using the > mouse). We have even connected an FTDI based device and that gets detected > by the kernel (from dmesg, we can see the device enumeration messages). > > Now the next step was to implement a basic test application that uses "USB > Host mode APIs of Android" to enumerate the peripheral devices connected to > the host port. (Please scroll down to see the code snippet) > > I'm able to build the code using Eclipse with latest android-sdk. However > when this application is executed, I do not see any of the USB devices > attached to the host port getting detected. > > It would be great to know if anyone has tested Android's USB Host API on any > tablet device especially Motorola XOOM. I would really appreciate your > comments/suggestions. > > <Code Snippet> > Log.d("USB_TEST", "begin enumeration"); > usbman = (UsbManager) getSystemService(USB_SERVICE); > HashMap<String, UsbDevice> deviceList = usbman.getDeviceList(); > Iterator<UsbDevice> devIter = deviceList.values().iterator(); > > while(devIter.hasNext()) { > UsbDevice dev = devIter.next(); > Log.d("USB_TEST", "dev-name: " + dev.getDeviceName()); > Log.d("USB_TEST", "vendor-id: " + dev.getVendorId()); > Log.d("USB_TEST", "product-id: " + dev.getProductId()); > } > Log.d("USB_TEST", "enumeration complete"); > > </Code Snippet> > > Warm Regards, > Anil -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en