I'm using Qt Creator with Qt 6.9.0 to develop an Android application. The code works fine, and I can successfully build and run the app on my Android phone.
Now, I'm trying to access a USB device connected to the phone using a USB-OTG adapter. However, when I connect the USB device, my application doesn't appear in the list of apps that can handle the device (i.e., the "Open with" dialog that shows up for USB devices).
My Questions:
I was able to solve my issue by including the libraries from this repository:
If you're working with Qt on Android for USB serial communication, this library provides the necessary JNI bindings and Java classes to make it work. After integrating it properly, everything started working as expected.