Bluetooth Low Energy on Android: Top Tips for the Tricky Bits
summary
Android BLE advice is pragmatic: build a central-role client for Android (Lollipop+) or Android Things, expect to manage 7 concurrent connections and an Android-only limit of 15 notification subscriptions, and require coarse location permission plus location services to scan. Implement a single command queue that serializes GATT operations, always call discoverServices after connect, handle frequent intermittent disconnects with timed reconnects and retries, and tear down and restart the connection on unexplained failures.
AI-written summary · about
chapters (16)
- 0:00Introduction and speaker intro
- 1:25BLE basics recap
- 8:52Android BLE landscape
- 11:40Planning and preparing app
- 13:25Checking BLE support
- 16:13Scanning for peripherals
- 21:55Handling scan results
- 23:18Connecting to devices
- 25:05Command queuing and sequencing
- 29:57Discovering services
- 31:41Reading characteristics
- 32:42Writing characteristics
- 33:03Enabling notifications
- 36:16Disconnecting cleanly
- 38:42Advanced BLE issues
- 40:28Q&A session
related talks
35mState of BLE on Android in 2022
38mBluetooth LE for Modern Android Development
40mState of Bluetooth LE on Android in 2023
38mBest Practices for Bluetooth Development
21mConnecting the bean – The bumpy road of BLE on Android
34mA journey in Android's BLE world
39mTalking to your bike and other devices (wait, what?)
31mAn introduction to Bluetooth mesh for Android developers
