Upgrade to Pro — share decks privately, control downloads, hide ads and more …

既存アプリを1時間でWear対応する

 既存アプリを1時間でWear対応する

Android Wear勉強会 #2 ( http://atnd.org/events/53398 )の発表資料です。

Taro Nagasawa

July 16, 2014
Tweet

More Decks by Taro Nagasawa

Other Decks in Programming

Transcript

  1. ϝοηʔδૹ৴"1* Wearable.NodeApi#getConnectedNodes Wearable.MessageApi#sendMessage Ͱ઀ଓ͍ͯ͠ΔϊʔυΛऔಘͯ͠ ͰϝοηʔδΛૹ৴͢Δ Wearable.NodeApi.getConnectedNodes(googleApiClient).setResultCallback(! new ResultCallback<NodeApi.GetConnectedNodesResult>() {! @Override!

    public void onResult(final NodeApi.GetConnectedNodesResult nodes) {! for (final Node node : nodes.getNodes()) {! Wearable.MessageApi.sendMessage(client, node.getId(), path, data);! }! }! }! );