Ejemplo n.º 1
0
 public void onUpdatePresenceError(final ImErrorInfo error) {
   final int N = mRemoteConnListeners.beginBroadcast();
   for (int i = 0; i < N; i++) {
     IConnectionListener listener = mRemoteConnListeners.getBroadcastItem(i);
     try {
       listener.onUpdatePresenceError(ImConnectionAdapter.this, error);
     } catch (RemoteException e) {
       // The RemoteCallbackList will take care of removing the
       // dead listeners.
     }
   }
   mRemoteConnListeners.finishBroadcast();
 }