Hi All, I have been a member of this Forum for over 10 years, and this will be my first request for help.
I have an Opensource project which I am now porting to Android, it is 99% done, but for the life of me,
can not figure out how to use JNI to access Android.media.midi

Here is a link to the Android Media API

At this stage I just want to initialize the midi and list any attached USB-Midi device, from there I should be able to figure out the rest,
if I could see an example.

This is the Android Java API

The primary class for accessing the MIDI package is through the MidiManager.
MidiManager m = (MidiManager)context.getSystemService(Context.MIDI _SERVICE);

Get List of Already Plugged In Entities
When an app starts, it can get a list of all the available MIDI devices.
This information can be presented to a user, allowing them to choose a device.
MidiDeviceInfo[] infos = m.getDevices();

Question is:
What would be the equivalent in Qt JNI ?

This is what I have been scratching around with, but get no devices returned in the list..

QAndroidJniObject m = QAndroidJniObject::callStaticObjectMethod("(MidiMa nager)context.getSystemService(Context.MIDI_SERVIC E)",

QAndroidJniObject ports = QAndroidJniObject::callStaticObjectMethod("(MidiMa nager)context.getSystemService(Context.MIDI_SERVIC E)",
QString text = ports.toString();

qWarning() << "**************** m to string ="+ text;
emit setStatusdBugMessage("["+text+"]");

To make things more difficult, the USB port requires a USB Midi device plugged in, so I lose the ADB debugging.
Although I did try the Wifi debug connection, but the logging is too verbose to keep up with.

Any help very much appreciated.
Thanks :-)