fm/fmapp2/src/com/caf/fmradio/FMTransmitterActivity.java
void updateText() {
        if(mStatus != SCROLLER_RUNNING) {
           return;
        }

        removeMessages(SCROLLER_MSG_TICK);

        final TextView textView = mView.get();
        if(textView != null) {
           String szStr2 = "";
           if(mStringlength > 0) {
              mIteration++;
              if(mIteration >= mStringlength) {
                 mIteration = 0;
                 sendEmptyMessageDelayed(SCROLLER_MSG_RESTART,
                                            SCROLLER_RESTART_DELAY_MS);
              }else {
                 sendEmptyMessageDelayed(SCROLLER_MSG_TICK,
                                            SCROLLER_UPDATE_DELAY_MS);
              }
              szStr2 = mOriginalString.substring(mIteration);
           }
           textView.setText(szStr2);
        }
     }
/**
      * Moves the text left by one character and posts a delayed message for
      * next update after SCROLLER_UPDATE_DELAY_MS. If the entire string is
      * scrolled, then it displays the entire string and waits for
      * SCROLLER_RESTART_DELAY_MS for scrolling restart
      */
Moves the text left by one character and posts a delayed message for
next update after SCROLLER_UPDATE_DELAY_MS. If the entire string is
scrolled, then it displays the entire string and waits for
SCROLLER_RESTART_DELAY_MS for scrolling restart
Moves the text left by one character and posts a delayed message for next update after SCROLLER_UPDATE_DELAY_MS . If the entire string is scrolled then it displays the entire string and waits for SCROLLER_RESTART_DELAY_MS for scrolling restart
void updateText() {
        if(mStatus != SCROLLER_RUNNING) {
           return;
        }
        removeMessages(SCROLLER_MSG_TICK);
        final TextView textView = mView.get();
        if(textView != null) {
           String szStr2 = "";
           if(mStringlength > 0) {
              mIteration++;
              if(mIteration >= mStringlength) {
                 mIteration = 0;
                 sendEmptyMessageDelayed(SCROLLER_MSG_RESTART,
                                            SCROLLER_RESTART_DELAY_MS);
              }else {
                 sendEmptyMessageDelayed(SCROLLER_MSG_TICK,
                                            SCROLLER_UPDATE_DELAY_MS);
              }
              szStr2 = mOriginalString.substring(mIteration);
           }
           textView.setText(szStr2);
        }
     }
void updateText ( ) { if ( mStatus != SCROLLER_RUNNING ) { return ; } removeMessages ( SCROLLER_MSG_TICK ) ; final TextView textView = mView . get ( ) ; if ( textView != null ) { String szStr2 = "" ; if ( mStringlength > 0 ) { mIteration ++ ; if ( mIteration >= mStringlength ) { mIteration = 0 ; sendEmptyMessageDelayed ( SCROLLER_MSG_RESTART , SCROLLER_RESTART_DELAY_MS ) ; } else { sendEmptyMessageDelayed ( SCROLLER_MSG_TICK , SCROLLER_UPDATE_DELAY_MS ) ; } szStr2 = mOriginalString . substring ( mIteration ) ; } textView . setText ( szStr2 ) ; } }
Moves the text left by one character and posts a delayed message for
 next update after SCROLLER_UPDATE_DELAY_MS.
Moves the text left by one character and posts a delayed message for next update after SCROLLER_UPDATE_DELAY_MS .