Why Activity Callbacks Such as onPause , onStop and onDestroy are not invoked when Asynctask is involved -
when create async task in activity , while task still executing , if press button in activity , activity callbacks such onpause , onstop , ondestroy not invoked.
not able understand why ?
while asynctask running background cannot interrupt it, , activity may not pause, stop or destroy (even if can, asynctask still running).
unless
you phone call cancel(true) kill asynctask or check iscancelled() verify if asynctask still running background.
android-asynctask
No comments:
Post a Comment