I'm developing android applications for a while, and followed a lot of posts about activity life cycle, and application's life cycle.
I know Activity.finish()
method calls somewhere in the way to Activity.onDestroy()
, and also removing the activity from stack, and I guess it somehow points to operating system and garbage collector that he can "do his trick" and free the memory when it find it a good time doing so....
I came to this post -
Is quitting an application frowned upon? and read Mark Murphy's answer.
It made me a bit confused about what exactly the finish()
method actually does.
Is there a chance I'll call finish()
and onDestroy()
won't be called?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…