Companion ring pairing
Purpose
Demonstrate scanning, attaching, and surfacing headset companion ring telemetry on the phone.
Entry points
Phone settings hierarchy:
SettingActivity→DeviceLinerActivity
Sample Activity:
com.rokid.phone.ui.DeviceLinerActivity
Platform
- Phone
Main files
Flow
- Register
IBTRingClientListener. - Call
startScan()with curated filters for supported ring SKUs. - Populate the Recycler list with discoveries.
- On tap, call
connectToServer()and await callbacks updating UI badges.
Highlighted APIs
- Ring-aware discovery
- Dedicated connect shim
- Result callbacks powering UI badges
Caveats
- Filters hard-code friendly names (
D01,D06) — adjust before retail. - UI surfaces both connected/disconnected states inline.
- Flipping “connection enabled” toggle stops scans and forcibly disconnects the active ring session.