android TextView setText not working

前端 未结 7 2009
被撕碎了的回忆
被撕碎了的回忆 2021-01-04 02:37

I know there are a lot of similar threads but I\'ve gone through them and still can\'t figure out the problem. My program reaches the Handler but it always returns the catc

相关标签:
7条回答
  • 2021-01-04 03:18

    I hope you handler is running in UI Thread. Also try doing this: Assign your string to a variable and use that variable as it requires charsequence.

    String temp = "Got it!";
    chatbox.setText(temp);
    
    0 讨论(0)
提交回复
热议问题