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

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -