title: Determine if Android Wear device is online
body: <p>I'm developing an Android application that also uses notifications on an Android Wear device. It's crucial to my applications functionality to know if the Wear device is connected or not  - and it seems impossible to determine.</p>
  
  <p>I have tried the following:</p>
  
  <ul>
  <li>Using the Nodelistener API. I want to to something simple - like restarting the watch and see it go offline and online, but I don't receive these events. I've read that it's only hardcore pairing / unpairing of the watch that causes these events to be sent (which seems wrong imo, and it's too complicated to do illustrate the purpose of my app). I've also read this post (<a href="https://plus.google.com/+NathanSchwermann/posts/1Rs9etY5qte" rel="nofollow">https://plus.google.com/+NathanSchwermann/posts/1Rs9etY5qte</a>) but I'm already using a WLS in my app.</li>
  <li>Using a bluetooth listener instead (Broadcastreceiver listening for BluetoothDevice.ACTION_ACL_CONNECTED and DISCONNECTED actions) which works perfectly - except that I cannot determine if it's a Wear device that has connected. Again, this is because of the NodeApi: Wearable.NodeApi.getConnectedNodes(wearApiClient).setResultCallback ... never gets a result callback. This is what I'm trying to do when getting the ACION_ACL_CONENCTED action by the way - and then I simply want to see how many nodes are connected and determine if it's a newly connected node. </li>
  </ul>
  
  <p>So none of this works and I'm out of ideas. It seems like the NodeApi doesn't work as a developer wants to use it and I really need this functionality.</p>
  
  <p>Does anyone know a clever way to get around this?</p>
  
  <p>**UPDATE: **</p>
  
  <p>Just to clarify, I want to get a callback when devices connect and disconnect. </p>