Why Context can't be used in doInBackground() of AsyncTask

前端 未结 3 986
孤街浪徒
孤街浪徒 2021-01-13 12:11

I am just finding what is the fact behind not using Context inside doInBackground(). In-fact we can\'t update the UI inside doInBackground() di

3条回答
  •  天命终不由人
    2021-01-13 12:57

    We can use context in doinbackground method but only to get value from ui component. We can not use contexr to set value in ui component

提交回复
热议问题