~/talk

State of Bluetooth LE on Android in 2023

Talkat Android Makers by droidcon 2023 · 2023-04-27..04-28· [android]
slides:none on file

Bluetooth LE on Android is usable but brittle: avoid supporting versions below Android 8 (API 26), rely on companion device manager plus a foreground service from Android 12 and register a companion device service to wake the app, and treat the autoConnect flag as “indirect” not a simple retry. Queue every GATT operation with a mutex and timeout (example: coroutine-based queue), never retain BluetoothGattCharacteristic objects, prefer the new memory-safe callbacks introduced in API level 33, and use write type no response or PHY 2M/LE coded only when the device and workflow tolerate the limits.

AI-written summary · about

  1. 0:00Start
  2. 6:02Android BLE requirements
  3. 7:30Use CompanionDeviceManager
  4. 12:21Bonding
  5. 15:03Companion Device Service
  6. 19:59Two common GATT designs
  7. 25:29Deprecated callbacks
  8. 31:10Connection Strategy
  9. 35:04Long-range, low bandwidth
  10. 37:35Common pitfalls
~/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.