May be another potential reason could be the difference of android security upgrade ?
the last update on the phone where I have still problem is quite new : 2022-09-01 , compare to the one I have in the tablet (where it s work) : 2022-07-01.
I could upgrade the tablet to be sure with the requested 2022-10-01 upgrade, but I am a bit afraid now...
Hi Anke
I confirm that if I build an apk from my simple aia, and I test it in my phone , I have still the BT problem bug.
If I do exactly the same in my tablet , no problem at all .
(the two equipment have the same Android12 and 31 SDK version...)
in your aia test you didn't go up to the connection itself .
I developped slightly your aia to include this next step ... and it doesn't work still on the phone but worls fine on my tablet again.
I joined your modified aia but basiocally it is this :
sorry @Anke : I confirm that my BT server device is also in BT classic
@ewpatton : Many thanks. I downloaded your aix for BT BLE .But In my special case, I have a potential problem in BT classic with BluetoothClient, or more precisely it depend on the phone or tablet ; it works well as before on a tablet for me with relatively old security upgrade (at least requesting one new ) and not ( and this is new - may be still wotrks a few days ago - ) on another phone with newer upgrade.
Could be even not a problem from AI properly !
What about posting a screenshot of my TestBTConnect2.apk (post [#48]
in my post #52 , this is not exactly the screenshot of your original TestBTConnect.aia . I add mainly the call BluetoothClient Connect , where precisely the problem occur, and call this new aia as " BluetoothClient_AI2test_withConnection.aia"
Post a screenshot of this APK after the first run:
here is the screenshot of this apk after the BTclient Call , from my phone ( but works from the tablet )
The main reason for my last test APK was to show that both permissions are requested/granted and the BT devices are shown. And I proved that, didn't I.
You claimed that this was not the case (for your "first phone"):
Sorry for the confusion, but yes I confirm that your aia succeed to ask me the permissions on the phone.
However the original bug problem is not there in fact but when we call the BluetoothClient adress, after .
As far as I can see, this problem is tricky for me, because it s work on some android device in android 12/ SDK31 but doesn't work and create this bug on some other ( even with the same 12/31 ) .
Could be a problem of parameter in each phone, security level or something else ; Don't really know .