Possible Duplicate:
USB Connection notification
What to do in resource XML file and in manifest if I want to get broadcast for all USB cables.
Currently the resource XML file is like this:
<resources>
<usb-accessory manufacturer="Acme, Inc" model="Whiz Banger" version="7.0" />
</resources>
Add this to your manifest
Modify you onReceive inside yourReceiverClassName to this
}