@Override public void onConnected(Bundle connectionHint) { if (mDataListener != null) { Wearable.DataApi.addListener(mGoogleApiClient, mDataListener); } if (mMessageListener != null) { Wearable.MessageApi.addListener(mGoogleApiClient, mMessageListener); } if (mNodeListener != null) { Wearable.NodeApi.addListener(mGoogleApiClient, mNodeListener); } // TODO Vishnu : check this callback is needed if (mConnectionCallBacks != null) { mConnectionCallBacks.onConnectionSuccess(); } }
@Override public void onConnected(Bundle bundle) { if (mGoogleApiClient != null) Wearable.DataApi.addListener(mGoogleApiClient, this); sendMessage(STATUS); }
@Override public void onConnected(Bundle bundle) { Wearable.DataApi.addListener(mGoogleApiClient, this); }
@Override public void onConnected(Bundle bundle) { Log.d("TAG", "onConnected"); Wearable.DataApi.addListener(mGoogleApiClient, this); Wearable.MessageApi.addListener(mGoogleApiClient, this); }