I used dynamic broadcast can receive UsbManager.ACTION_USB_DEVICE_ATTACHED
and UsbManager.ACTION_USB_DEVICE_DETACHED
event.
But when my app is not run,the usb device have been plugged,the dynamic broadcast is not receive it. So I want to when my app is first run, i can check it.
I used static broadcast can receive the event,but i don't want to use the method,is it have other method?