New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to get USB status #38
Comments
I couldn't find the functionality in the API reference. |
Hi, maybe you can just listen to the USB events and get a status from there :
If you declared your usb device(s) in android manifest, you will receive events for them... |
Thanks, this is kind of what I was looking for. What about checking permissions or getting permissions in case the user has denied it? Is there any library which exposed that API? |
Great ! |
Thanks m8, this works. |
Closing since fixed. |
Hi,
I'm trying to create a stream for listening to the USB status (permission allowed/denied, OTG available or not, etc.). Is there any functionality built into this library to check for the same?
here is the sample pseudo code:
Is this functionality like statusStream or USBStatus available in this library for easy detection of sudden changes from the user (user suddenly disables OTG, OTG is not available on this device etc.)?
The text was updated successfully, but these errors were encountered: