private synchronized void _stop(){
  while (m_activities.size() > 0) {
    Activity a=(Activity)m_activities.get(m_activities.size() - 1);
    a.cancel();
  }
  _setRunning(false);
  notify();
}

private synchronized void _stop ( ) { while ( m_activities . size ( ) > 0 ) { Activity a = ( Activity ) m_activities . get ( m_activities . size ( ) - 1 ) ; a . cancel ( ) ; } _setRunning ( false ) ; notify ( ) ; }
stops the activity manager thread . all scheduled actvities are canceled , and then the thread is then notified to stop running .
