First, remove line 10 (
The imports for USB must be changed from com.android.future.usb.... to android.hardware.usb....
In line 128 and 139 change:
UsbAccessory accessory = UsbManager.getAccessory(intent);
to:
UsbAccessory accessory =(UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
Line 152 must go from:
mUsbManager = UsbManager.getInstance(this);
to:
mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE);
Now I just have to wait for my USB host board to come in so that I can play with some stuff....