~/talk

State of BLE on Android in 2022

Talkat droidcon London 2022 · 2022-10-27..10-28· [android]
slides:none on file

Bluetooth Low Energy on Android works but has concrete caveats: target min SDK 26, use the companion device manager and companion device service for discovery, pairing and background access, and set auto-connect true when connecting. Never pass BluetoothGattCharacteristic objects between threads, always queue GATT operations and wait for callbacks, and prefer API methods added in API 33 fixes race condition (callbacks supply byte[]). Bonding saves keys; removing bond requires hidden API via reflection. Emulators still lack reliable BLE support.

AI-written summary · about

  1. 0:00Introduction and BLE basics
  2. 5:59Android BLE API history
  3. 9:06Companion device manager benefits
  4. 12:38Pairing vs bonding explained
  5. 15:22Companion device service
  6. 16:27GATT architecture and operations
  7. 23:50Race conditions in GATT
  8. 26:35Queuing GATT operations
  9. 26:58Handling notifications
  10. 28:21PHY options for BLE 5
  11. 30:26Common pitfalls summary
  12. 31:30Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.