fm/fmapp2/src/com/caf/fmradio/FMRadio.java
void updateText() {
         if (mStatus != SCROLLER_RUNNING) {
            return;
         }
         removeMessages(SCROLLER_MSG_TICK);
         TextView textView = mView.get();
         if (textView != null)  {
            mStringlength = mOriginalString.length();
            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);
               }
               if ((mOriginalString !=null) && (mOriginalString.length() >= mIteration))
                  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);
         TextView textView = mView.get();
         if (textView != null)  {
            mStringlength = mOriginalString.length();
            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);
               }
               if ((mOriginalString !=null) && (mOriginalString.length() >= mIteration))
                  szStr2 = mOriginalString.substring(mIteration);
            }
            textView.setText(szStr2);
         }
      }
void updateText ( ) { if ( mStatus != SCROLLER_RUNNING ) { return ; } removeMessages ( SCROLLER_MSG_TICK ) ; TextView textView = mView . get ( ) ; if ( textView != null ) { mStringlength = mOriginalString . length ( ) ; 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 ) ; } if ( ( mOriginalString != null ) && ( mOriginalString . length ( ) >= mIteration ) ) 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 .