AddActivityText(main, <intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
<action android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED" />
</intent-filtro>
<meta-dati android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
)
CreateResource(values, device_filter.xml,
<?xml version="1.0" encoding="utf-8"?>
<resources>
<usb-device vendor-id="1027" product-id="24577" />
<usb-device vendor-id="1027" product-id="24597" />
<usb-device vendor-id="9025" />
<usb-device vendor-id="5824" product-id="1155" />
<usb-device vendor-id="3146" product-id="1" />
<usb-device vendor-id="1659" product-id="8963"/>
<usb-device vendor-id="1003" />
<usb-device vendor-id="4292" product-id="60000"/>
<usb-device vendor-id="1317" product-id="42151"/>
<usb-device vendor-id="0x0c4a" product-id="0x889"/>
<usb-device vendor-id="0x0c4a" product-id="0x88a"/>
<usb-device vendor-id="0x0c4a" product-id="0x88b"/>
</resources>
)
[/CODICE]