What happens on Activity.finish() with AsyncTask still running in background?

Posted by stormin986 on Stack Overflow See other posts from Stack Overflow or by stormin986
Published on 2010-04-28T02:36:32Z Indexed on 2010/04/28 2:43 UTC
Read the original article Hit count: 286

Filed under:
|
|

What happens on Activity.finish() with an AsyncTask still running in background?

Does it just pop the Activity off the Activity Stack, but wait to destroy the Activity object until the AsyncTask fully completes (since the AsyncTask is an inner class of my Activity)?

Also, would it act any differently if the AsyncTask were a public, non-inner class that held no references to the instance of the Activity?

© Stack Overflow or respective owner

Related posts about android

Related posts about asynctask