Permission changes in Android 12 are modified and operated by myself according to Google’s documentation.
However, there was another big change in Android 13.
Pairing cannot be canceled even if BLE MIDI is disconnected.(I think it’s a specification change because it’s the same as iOS16/macOS13)
The pairing dialog (made by JUCE) only lists devices that are (advertised / not advertised), so devices that are already paired and not associated with MIDI cannot be listed.Behavior is different from the iOS/macOS version.
I’m trying to find the paired device on my own and list it in the dialog, but so far it’s not working.
please help.
I understand a little why Android 13 is having trouble.
juce/modules/juce_audio_devices/native/java/app/com/rmsl/juce/JuceMidiSupport.java
I tried building with the “-Xlint: deprecation” option,
(gradle’s compileSdkVersion is 31)
C:\Users\ogawa\Documents\GitHub\ToneRoom_main\juce\modules\juce_audio_devices\native\javacore\app\com\rmsl\juce\JuceMidiSupport.java:105: WARNING: [deprecation] BluetoothAdapter’s getDefaultAdapter() is deprecated not
BluetoothDevice btDevice = BluetoothAdapter.getDefaultAdapter ().getRemoteDevice (address);
there was an explanation here
This method was deprecated in API level 31.
this method will continue to work, but developers are strongly encouraged to migrate to using BluetoothManager#getAdapter(), since that approach enables support for Context#createAttributionContext.
It seems that deprecated functions are affecting it, so I think it is necessary to rewrite it to something suitable for API31.
BLE-MIDI does not work properly on Android13 is a problem with Android13, and it seems that a fix program has been released. I don’t have a Pixel yet, so I’ll check it out when I get it. https://issuetracker.google.com/issues/246166737
–
another issue.
These seem to be fixed in the QPR2 release. (for only Google Pixel devices)
I bought a used Pixel 6a. I’m checking it right away.
If the OS build version is
TQ1A.XXXXXXX.XXXXX fails with BLE MIDI disconnection
Successful with TQ2A.XXXXXXX.XXXXX. It is the same movement
as up to Android 12. TQ2A is Mar/2023 version.
I don’t know when devices other than Google Pixel will be updated,
so it’s hard to explain in the documentation or PlayStore Page.