Skip to main content
Participant
August 4, 2014
Question

Android Native Extension to connect to USB device

  • August 4, 2014
  • 1 reply
  • 995 views

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 has been closed for replies.

1 reply

ralipar
Participant
April 29, 2016

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