title: How can I update Android UI in a coroutine?
body: <p>I have code that crashes when I put code that updates UI in a coroutine. For example:</p>
  
  <pre><code>GlobalScope.launch {
  //code that makes text box blue
  delay(1000L)
  }
  </code></pre>
  
  <p>Will crash. I also need to loop the delay several times so I can't use post handlers. How can I fix this?</p>