Hi. My app don't want to scan bluetooth devices since Android 14 appears. In logs I am getting this:
*** Service (starter) Create ***
Start Starter
SDK werja: 34
FirstStart: true
Error occurred on line: 374 (Starter)
java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@cf91748b: AdapterService getBondedDevices
at com.android.bluetooth.Utils.checkPermissionForDataDelivery(Utils.java:554)
at com.android.bluetooth.Utils.checkConnectPermissionForDataDelivery(Utils.java:586)
at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.getBondedDevices(AdapterService.java:2429)
at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.getBondedDevices(AdapterService.java:2420)
at android.bluetooth.IBluetooth$Stub.onTransact(IBluetooth.java:1064)
at android.os.Binder.execTransactInternal(Binder.java:1344)
at android.os.Binder.execTransact(Binder.java:1275)
I have add this permission (Bluetooth_Connect) in manifest editor.
I am using only Bluetooth Clasic and not using B4Xpages so far.
Is it possible to overtake this problem ?
Thank you for any help.
Tomasz
*** Service (starter) Create ***
Start Starter
SDK werja: 34
FirstStart: true
Error occurred on line: 374 (Starter)
java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@cf91748b: AdapterService getBondedDevices
at com.android.bluetooth.Utils.checkPermissionForDataDelivery(Utils.java:554)
at com.android.bluetooth.Utils.checkConnectPermissionForDataDelivery(Utils.java:586)
at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.getBondedDevices(AdapterService.java:2429)
at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.getBondedDevices(AdapterService.java:2420)
at android.bluetooth.IBluetooth$Stub.onTransact(IBluetooth.java:1064)
at android.os.Binder.execTransactInternal(Binder.java:1344)
at android.os.Binder.execTransact(Binder.java:1275)
I have add this permission (Bluetooth_Connect) in manifest editor.
I am using only Bluetooth Clasic and not using B4Xpages so far.
Is it possible to overtake this problem ?
Thank you for any help.
Tomasz