Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 92406

Android Native Extension to connect to USB device

$
0
0

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.


Viewing all articles
Browse latest Browse all 92406

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>