Ejemplo n.º 1
0
    public void onUserPresenceUpdated() {
      updateAccountStatusInDb();

      final int N = mRemoteConnListeners.beginBroadcast();
      for (int i = 0; i < N; i++) {
        IConnectionListener listener = mRemoteConnListeners.getBroadcastItem(i);
        try {
          listener.onUserPresenceUpdated(ImConnectionAdapter.this);
        } catch (RemoteException e) {
          // The RemoteCallbackList will take care of removing the
          // dead listeners.
        }
      }
      mRemoteConnListeners.finishBroadcast();
    }