Android - Getting Android ID of Android Wearable Device from Smart Phone -


is there way android id of android wearable device pairs smart phone? have app running on smart phone no app running on android wearable device (watch example).

from understanding, android wearable device , smart phone pair via bluetooth. looked through of bluetooth apis (http://developer.android.com/guide/topics/connectivity/bluetooth.html) , closest thing can id uuid isn't android id (http://developer.android.com/reference/android/bluetooth/bluetoothdevice.html#getuuids())

thanks! j

it's possible. need use nodeapi on handheld, connected nodes, through getconnectednodes. returns instance of nodeapi.getconnectednodesresult. through object can retrieve list of connected nodes. e.g

wearable.nodeapi.getconnectednodes(mgoogleapiclient).setresultcallback(new resultcallback<nodeapi.getconnectednodesresult>() {         @override         public void onresult(nodeapi.getconnectednodesresult getconnectednodesresult) {                 (node node : getconnectednodesresult.getnodes()) {                    log.i(log_tag, "node id " + node.getid());                 }          } });   

Comments

Popular posts from this blog

java - Null response to php query in android, even though php works properly -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -