bluetooth - How to check if there is a connection to a android wear from an app? Android -



bluetooth - How to check if there is a connection to a android wear from an app? Android -

in application want display message user if user connected smartwatch or not. trying check if there connection device smartwatch, , coudn't find reply in internet. how can check it? easiest way send message , check answer? in advance

nodeapi.getconnectednodes() provides list of connected android wear nodes

if list empty (or while connecting required googleapiclient wearable.api returns api_unavailable (such in cases android wear app not installed or api level not back upwards android wear per this blog post) no wear device attached.

android bluetooth sony-smartwatch

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -