title: I am trying to change the background of a textView while TextToSpeech is running, is this possible?
body: <p>I am trying to change a textView background while textToSpeech is running.
  However, my code changes the textView background after the textToSpeech is completely finished speaking.</p>
  
  <pre><code> Log.i(TAG, "Inside else block of play");
  
              Handler mainHandler = new Handler(mAppContext.getMainLooper());
  
              Runnable myRunnable = new Runnable() {
                  @Override
                  public void run() {
                      textView.setBackgroundColor(Color.BLUE);
                  }
              };
  
  
              speakOut(word);
  
              do {
                  mainHandler.post(myRunnable);
              } while (tts.isSpeaking());
  </code></pre>