How Android retrieves info of the Stacked Activities which are killed when memory goes low.

Posted by taranfx on Stack Overflow See other posts from Stack Overflow or by taranfx
Published on 2010-04-25T11:36:52Z Indexed on 2010/04/25 11:43 UTC
Read the original article Hit count: 138

Filed under:

I was reading on how Activities communicate and how the calls stack up on top of each other. But at any instant when the OS(or dalvik) is low on resources, it can choose to kill Paused or Stopped Activities. In this scenario, how do we restore previous state of the activity(in which it was before getting killed) when we reach the same activity on our way back.

Does stack store the state as well as references to the Activity? Aren't their chances of achieving a different state when we re-constuct activity (onCreate)?

© Stack Overflow or respective owner

Related posts about android