Questions tagged [android-companion-device]

8 questions
3
votes
3 answers

Android CompanionDeviceManager Never Finds Any Nearby Bluetooth Devices

UPDATE: Added Main Activity code which contains Bluetooth permissions logic I'm trying to utilize Android's CompanionDeviceManager API to find nearby bluetooth (non LE) devices on my Pixel 5 running Android 13, but it only ever seems to find nearby…
3
votes
2 answers

CompanionDeviceService unbinds immediately

I'm trying to implement CompanionDeviceService in order to interact with our BLE device. According to the documentation System will keep this service bound whenever an associated device is nearby, ensuring app stays alive But that's not what I'm…
Maragues
  • 37,861
  • 14
  • 95
  • 96
2
votes
1 answer

Can any BLE device be a Companion Device?

I'm developing a flutter application (fairly new to this). My app need to connect to a BLE device and get data when it is close by. As I found Android Companion Device Manage seems to suit my requirement. BLE Hardware which I'm supposed to work is…
1
vote
2 answers

CompanionDeviceService gets destroyed right after creation

I have simple activity with function that when called displays ble pairing request. After user confirms, startObservingDevicePresence("Some Mac address") is called. That successfully triggers CompanionDeviceService and I see logs that device…
1
vote
0 answers

CompanionDeviceManager instability in Android

Did anyone have a successful experience on working with CompanionDeviceManager on Android? Especially, with the devices with Bluetooth Classic support. I've been testing a pretty simple app which tries to connect some device using Bluetooth Classic…
Ov3r1oad
  • 1,057
  • 1
  • 12
  • 25
0
votes
1 answer

Android Companion Device Manager/Pairing and devices that require bonds

We recently rewrote a significant part of our app, but are now running in to some behaviour around device pairing bonding in particular that we would like to improve. We connect to a number of different devices, some that require a bond and others…
0
votes
1 answer

How to connect to a WearOS companion watch app using Kotlin?

For days now I have been trying to connect a Jetpack Compose app to an WearOS watch (simulator), and I just can't figure it out. I have successfully paired the simulators (Wear OS app shows Connected to emulator), but I can't get them to connect in…
0
votes
0 answers

Outgoing transactions from this process must be FLAG_ONEWAY when using CompanionDeviceManager

I am trying to use the CompanionDeviceManager as described here - but I am getting this error: 02-09 23:03:58.592 4729 4729 W Binder : Outgoing transactions from this process must be FLAG_ONEWAY 02-09 23:03:58.592 4729 4729 W Binder :…
ligi
  • 39,001
  • 44
  • 144
  • 244