Skip to main content
Participant
Aug 4, 2014 9:26 AM UTC
Question

Android Native Extension to connect to USB device

I am working on an AIR Native Extension for Android that I want to connect to peripheral devices via USB.  However, my efforts at enumerating USB devices just hang at present.  (Using this library: kshoji/USB-MIDI-Driver · GitHub )

Before I get too far into debugging the code I wanted to check something more fundamental:

Can an Android Native Extension handle/bypass the dialog that Android throws for use of USB (or other) devices.  ("Allow the app <AppName> to access the USB device?")  I have seen a few articles for defining intents and remembering permissions in native Android apps and tried that but it seems that the dialog would still be shown at least once.  (See android - USB device access pop-up supression? - Stack Overflow.)

Is my understanding correct?  Is this what is hanging my app?  And if so is there any way to raise/handle that dialog in my AIR app or bypass it altogether?

Thanks for reading.

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

ralipar
Participant
Apr 29, 2016 5:47 AM UTC

hi. i'm also facing the same problem, were you able to support this?

Translate