Hi,
I have developed several android applications with MIT App Inventor 2 (up to version nb149). All these app are working very well on Android Version 4.2.2 (Archos 101 Xenon tablet).
The connect method used is :

The same app binaries don't work on Android Version 5.0.2 (Samsung SM-T555 tablet). All these app have the same problem. The client is already paired before to start the app. The connection to Bluetooth slave devices using the Serial Port Profile (SPP) fail without error on the screen.
The problem is the same with two SPP slave devices: the HC-05 module and GenBlue 19e DCE.
All is fine on Samsung/Android Version 5.0.2, if I modify the connect method like this :

If the app developed with Inventor is replaced by the Bluetooth Terminal app (available on App Store) everything is working fine on Android Version 5.0.2. So MIT App Inventor 2 seem to work not correctly on Android Version 5.0.2 !
The .aia project using the first method is attached to this message.
Why the first method doesn't work ? The second method isn't a good solution since it need to know the device address (NAP, UAP, LAP) and only one device can be used.
Thanks to help me.