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

后端 未结 6 1581
你的背包
你的背包 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:44

    Async task keeps running untill he onPostExecute() is finished.

    try it by putting a toast on finish() and onPostExecute() to see which toast is shown first.

提交回复
热议问题