if I call intent.stopActivity(), and inside that Activity I called a AsyncTask on instantiation: is the task canceled when stopping the activity, or will it remain in background?
if I call intent.stopActivity() , and inside that Activity I called a AsyncTask on
Share
I’m not aware of a
stopActivitymethod inIntent, but anAsyncTaskis not automatically cancelled when its callingActivityis “stopped” whether truly being put in the stopped state or finished. If you want that to happen, callcancelon theAsyncTaskin the appropriate lifecycle method inActivitylikeonStop.