The Pebble watch has a Intent that is globally sended when the Pebble is connected/disconnected. This allow the phone apps to know if the watch is connected or not. I have searched but I'm not capable to locate info about a similar feature for Android Wear. How know if a wearable is connected to the phone? Is possible to receive a event like with Pebble? Thanks
Have you tried NodeApi, you can use getConnectedNodes
Gets a list of Nodes to which this device is currently connected.
or addListener(GoogleApiClient client, NodeApi.NodeListener listener)
which
Registers a listener to receive all node events.
Then you can use callbacks from NodeApi.NodeListener
onPeerConnected(Node peer) and onPeerDisconnected(Node peer)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With