Mango From Scratch
Mango introduces fast application switching. To implement this feature a new stage in the
lifecycle has been added: Dormant. Applications are put in the dormant state when the user navigates forward, away from the application (e.g., using the Start button).
In the Dormant state all execution of the code is stopped but the application remains in memory. If the user navigates back into a dormant application, the application resumes and each page’s state is restored automatically.
Unfortunately, if the phone runs low on memory, your application may be tombstoned. In that case, the application is terminated, but if the user returns to the application you are responsible for making it appear as if the application has been alive all along. Fortunately, tombstoned applications do retain their State dictionary, and you can use that to restore the page state.
Continue reading →