question: private boolean _removeActivity ( Activity a ) { boolean r ; synchronized ( this ) { r = m_activities . remove ( a ) ; if ( r ) { if ( m_activities . size ( ) == 0 ) { m_nextTime = Long . MAX_VALUE ; } } } if ( r ) { a . setScheduled ( false ) ; } return r ; }
target:  Removes an Activity from this manager, called by an Activity when it finishes or is cancelled. Application  code should not call this method! Instead, use  Activity.cancel() to stop a sheduled or running Activity.