felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.78k stars 582 forks source link

How to check if USB is already connected at app launch #276

Open syedafeef opened 4 years ago

syedafeef commented 4 years ago

I'm trying to use USB service class to read data from USB devices but the actions it can detect is "ACTION_USB_DETACHED" and "ACTION_USB_ATTACHED" but what I want to know is if USB is already connected at application launch without any user click button.