public void addUpdateCallback(ILocalCallback cb){
synchronized (mUpdateCallbacks) {
    mUpdateCallbacks.add(cb);
  }
}

public void addUpdateCallback ( ILocalCallback cb ) { synchronized ( mUpdateCallbacks ) { mUpdateCallbacks . add ( cb ) ; } }
registers a localcallback class , which will be called when various events happen from any of the registered providers .
