Only the original thread that created a view hierarchy can touch its views ERROR

后端 未结 2 1639
孤城傲影
孤城傲影 2021-01-29 10:54

Everything works except when it reaches till the last part of the code with \"Successfully Registered!\" then the error as mentioned in the title appears inside the registerDial

2条回答
  •  盖世英雄少女心
    2021-01-29 11:27

    You do some UI work in your doInBackground, for example this call

    rAuth.setTextColor(Color.GREEN);
    

    Move this code to the onPostExecute method.

提交回复
热议问题