@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();
    }
  }
Ejemplo n.º 2
0
 @Override
 public void onConnected(Bundle bundle) {
   if (mGoogleApiClient != null) Wearable.DataApi.addListener(mGoogleApiClient, this);
   sendMessage(STATUS);
 }
Ejemplo n.º 3
0
 @Override
 public void onConnected(Bundle bundle) {
   Wearable.DataApi.addListener(mGoogleApiClient, this);
 }
Ejemplo n.º 4
0
 @Override
 public void onConnected(Bundle bundle) {
   Log.d("TAG", "onConnected");
   Wearable.DataApi.addListener(mGoogleApiClient, this);
   Wearable.MessageApi.addListener(mGoogleApiClient, this);
 }