I have an Android app that need to connect to a Usb device. I have used intent filter to get permission to the device, however, every time when I connect phone with the usb device, Android would automatically prompt a selection for default apps that to open with the usb device. I know the all the default apps for the device are determined by activities that have intent filter <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
So my question is, how can I disable the prompt for the device? No matter the app is open or not, the prompt always show up when device attached which is really annoying to me. Thanks for any help!