Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
46 views

Finding BLE Services

I'm trying to connect a smartphone running Android 13 to a server using BLE. Android 11 connects and finds services, but Android 13 can't find them. I have tried everything with permissions I'd like ...
Jose Bravo's user avatar
0 votes
1 answer
33 views

Does Android have an equivalent of iOS's Core Bluetooth canSendWriteWithoutResponse?

While implementing firmware updates, we've noticed that different Android phones seem to have different levels of reliability regarding GATT characteristic writes without response. Some will block the ...
rsaxvc's user avatar
  • 1,798
0 votes
0 answers
45 views

Uncaught exception thrown by finalizer for Bluetooth Reconnection in Android - java.io.IOException: socket not created

I am trying to work with a Serial Bluetooth connection where I am connecting and communicating to the IOT device serially over Bluetooth. So the device has On/Off switch which can basically close the ...
Rakshit Sorathiya's user avatar
1 vote
1 answer
444 views

Why is onCharacteristicChanged never called when it should be?

I'm working with Bluetooth (BLE) in an Android app. There is a characteristic that should be triggering callbacks to onCharacteristicChanged, but the callbacks never happen. Other functions of the ...
Flarosa's user avatar
  • 1,639
0 votes
0 answers
61 views

How to check if a BLE device is currently busy?

I need to check if the device is writing a firmware chunk. If yes, then do not start recording the next chunk. I tried to do it with continuations but it didn't work. Can a reliable write help me in ...
genzo's user avatar
  • 24
1 vote
2 answers
2k views

writeDescriptor(BluetoothGattDescriptor!): Boolean' is deprecated. Deprecated in Java

I am working Bluetooth gatt with minSdk 21 targetSdk 33 I see the writeDescriptor is deprecated in sdk 33. So I did this to wrap the code in SDK version check gatt.setCharacteristicNotification(...
Vivek Modi's user avatar
  • 6,129
1 vote
1 answer
374 views

onPhyUpdate is triggered with status 6 = GATT_REQUEST_NOT_SUPPORTED

I'm developing an Android app which communicates via BLE with an external module, and I am trying to set the BLE connection PHY. I've tried calling the method gatt.setPreferredPhy(txPhy, rxPhy, ...
rksilvergreen's user avatar
5 votes
2 answers
989 views

Android Bluetooth (BLE) corrupted data on onCharacteristicChanged

My app do the following: It sends a command with onDescriptorWrite to the BT device. As soon the BT device gets this command it starts transferring data to the Android phone. Android's ...
Adam Varhegyi's user avatar
6 votes
6 answers
2k views

Android BLE onScanResult is never called in the background on Android 11. Was working on Android 10

I have an app which scans for BLE devices. It was working perfectly on Android 10, but since I updated my phone to Android 11, the onScanResult just never gets called if I put the application to the ...
Adam Varhegyi's user avatar
0 votes
1 answer
632 views

Handling Notifications on Android with Multiple BLE Peripheral Connections

So, I am new to Android development and I am trying to connect my device to multiple BLE devices (T-Wristband) to receive frequent notifications (IMU sensor data less than 20 bytes at 50Hz). When ...
Ehsan Partovi's user avatar
0 votes
1 answer
758 views

BLE packet drops when Bluetooth and BLE are simultaneously in use

I am using BLE v4.1 for my application where I am able to transfer 200 packets of length 20 bytes each from peripheral to central side. I want to transfer data via BLE and play some music while the ...
Android_dev's user avatar
2 votes
2 answers
613 views

Companion device pairing: how to filter using UUID?

I am using Companion device pairing and followed this guide. I want to scan for devices and filter them using UUID. I tried the following val deviceFilter: BluetoothLeDeviceFilter = ...
Remon Shehatta's user avatar
2 votes
1 answer
522 views

Companion device pairing: how long does it take the scan to stop?

I am using Companion device pairing and followed this guide. when I try to associate to a device like that deviceManager.associate(pairingRequest,callbacks) it will start scanning for BLE devices. 1....
Remon Shehatta's user avatar
0 votes
1 answer
1k views

How to implement a custom UUID for bluetooth broadcast

I want to change my android device's Bluetooth UUID to a predefined value so that my BLE beacon can recognize it without pairing with it. From this question I gathered that I'll have to change the ...
kk_cc's user avatar
  • 45
1 vote
1 answer
563 views

Why Android BLE gatt callback method onCharacteristicChanged callback is called in lower rate in Wear OS device than on smartphone?

I develop an application designed for Wear OS devices that received data using BLE as Gatt client. I set the mtu size the maximum possible (517 bytes), and need to transfer some large amount of data - ...
user2993539's user avatar

15 30 50 per page
1
2 3 4 5
8