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?
I've tried the same thing with the Thread, and my observation is it keeps running the thread.
精彩评论