ccessory
import android.hardware.usb.UsbManager

mUSBManager = (UsbManager) getSystemService(Context.USB_SERVICE);
UsbAccessory acc = (UsbAccessory)
                   intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
</pre>

<p>Note that the app only receives events when the USB accessory identification information matches
the information in the <code>res/xml/usb_accessory_filter.xml</code> file, referenced by the
application’s manifest statement:</p>

<pre>
&lt;meta-data
    android:name="android.h