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
Post a Comment