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

后端 未结 2 1640
孤城傲影
孤城傲影 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:43

    I'm guessing that rAuth is a TextView. This needs to be moved to the onPostExecute() as you can't update UI elements in the doInBackground(). Only the onPostExecute(), onProgressUpdate() and onPreExecute() run on the UI thread.

    Here is Link to Docs

提交回复
热议问题