public synchronized void addActivityManagerListener(ActivityManagerListener l){
  listeners.add(l);
}

public synchronized void addActivityManagerListener ( ActivityManagerListener l ) { listeners . add ( l ) ; }
adds a listener to the progress manager .
