Bluetooth Select problem

123 views
Skip to first unread message

LT

unread,
Feb 4, 2023, 2:48:37 PM2/4/23
to DroidScript
On my Moto G22 running Android12 the DS demo Bluetooth Select (and a plotting app I have written incorporating it) does not display paired Bluetooth devices.
Another app "Serial Bluetooth" displays paired devices ok on this phone.
The DroidScript Bluetooth Select app works on several other devices I have.
 I am a fairly elementary level coder (although incredibly old).
 I have tried a reinstall to no effect
Any suggestions?
Thank you

Right2TheV0id

unread,
Feb 4, 2023, 6:19:51 PM2/4/23
to DroidScript
If you run your script from the WiFi IDE and look at your debug panel you'll see this warning message:
WARNING: App.GetPairedBTDevices() failed! (Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@46d40e84: AdapterService getBondedDevices)

This issue is bound to Android 12+ and the support team is already aware of it:

The issue should be fixed in the next release of DroidScript.
If you need it quickly, you could try to use the latest beta version (with caution, beta versions can be unstable):

AlexIoT

unread,
Feb 22, 2023, 2:24:28 PM2/22/23
to DroidScript
Hi, 
I´m using DS 2.61b1 and cell phone with Android 12.
But still not working bluetooth device list....
When you connect to the cell phone using WiFi (PC browser) and try to launch some app that uses bluetooth device list, it doesn't appears and app stucks.
DS 2.57 and same cell phone with Android 11 was working very well. Now, it's impossible to use any app that uses bluetooth device list.
Problem without solution yet
Regards
Alex

Dave

unread,
Feb 28, 2023, 5:38:09 AM2/28/23
to DroidScript
I'm not seeing this problem.  Also DS 2.61b1 does not exist, I presume you mean DS 2.60b1 right?

DS 2.60 has the BLUETOOTH_CONNECT permission, did you check that bluetooth permissions are not blocked for DS in Android settings?

Are you running the 'Bluetooth Select' sample inside DS?

Right2TheV0id

unread,
Feb 28, 2023, 8:07:59 AM2/28/23
to DroidScript
Tested all 4 bluetooth samples on the latest beta (260b1_p3) on Android 12 and no hanging or wathever.
If the problem persist for you, you should share the exact code that causes the hanging.
Note1: It asked me locaction permission the first time, you should check if you didn't refused it to DS.
Note2: "Bluetooth LEDs" sample displays "WARNING: App.AddLayout(#0) failed! (...)" because the main layout is added twice (line 18 and line 46)
Reply all
Reply to author
Forward
0 new messages