Real difference between AsyncTask and Thread

前端 未结 6 1213
有刺的猬
有刺的猬 2021-01-01 17:38

I have been reading Android documentation (AsyncTask, Thread) and vogella tutorial about this matter, but I have doubts yet.

For example, I want to send a message fr

6条回答
  •  我在风中等你
    2021-01-01 18:39

    • I would prefer to Use Async Task as it will let you know when the background process gets started and over and when can I parse the response.
    • Async has methods like onPreExecute and onPostExecute which will allow us to do tasks before and after calling the background tasks.

提交回复
热议问题