If an activity is killed, does the AsyncTask live on?

后端 未结 6 1606
你的背包
你的背包 2021-02-18 15:05

I think I know the answer to this, but does an AsyncTask continue to live on once its calling Activity has been finish()ed?

    protected void onPr         


        
6条回答
  •  死守一世寂寞
    2021-02-18 15:32

    Asynctask are not bounded to any life cycle method of Activity or Service.

    It keeps running in a separate thread until the onPostExecute() gets executed in the main thread.

提交回复
热议问题