I'm using Kotlin. I have a loop that will continue going. But for some reason, I am unable to update the text view. Here is my simplified example.
var i = 0
while (!Thread.currentThread().isInterrupted) {
setString(i.toString())
i++
Log.i("Loging value of i === ", i.toString())
}
private fun setString (string : String) {
tempText.text = string
}