~/talk

Bluetooth LE for Modern Android Development

Talkat droidcon Berlin 2021 · 2021-10-20..10-22· [android]
slides:none on file

Practical checklist for BLE on Android: target at least API level 28 (API 31 adds companion device service), use CompanionDeviceManager for pairing/background permissions, wrap callbacks into Kotlin coroutines Flow and guard all GATT calls with a mutex plus a timeout so only one GATT operation is in flight, split read and write into separate characteristics, enable notifications by calling setCharacteristicNotification and then writing the CCC descriptor, assume ~20–21 byte payloads, and consider PHY options (LE 1M/2M/coded S2/S8) to trade throughput for range.

AI-written summary · about

  1. 0:00Introduction and house analogy
  2. 3:33Bluetooth standards challenges
  3. 4:39Bluetooth basics GAP and GATT
  4. 14:38Android Bluetooth versions
  5. 16:01Companion device manager
  6. 20:32Connecting to GATT devices
  7. 22:40Bluetooth GATT callbacks
  8. 28:16Notifications in Bluetooth
  9. 30:20Bluetooth 5 PHY options
  10. 36:20Companion device service
  11. 37:05Key takeaways and conclusion
~/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.