How to show toast in AsyncTask in doInBackground

后端 未结 9 769
灰色年华
灰色年华 2020-11-27 23:01

In one of my activities I\'m using AsyncTask. In doInBackground() I\'m making calls to various methods. In one of these methods I\'m getting an exc

9条回答
  •  南笙
    南笙 (楼主)
    2020-11-27 23:31

    You can display it in a method, that has access to the UI thread like onPreExecute(), onProgressUpdate() and onPostExecute()

提交回复
热议问题