Dynamics Light Seeing the (Silver)Light effect in Dynamics CRM

13Jul/101

Windows Phone 7 Execution Model

MSDN has a great article explaining the Execution Model for Windows Phone 7. In a nutshell, Windows Phone 7 supports 5 different lifecycles (Launching, Running, Closing, Deactivated, and Activated).

The interesting ones are Deactivated and Activated. These events are provided to perceive user that the phone supports ‘multi-tasks’. Developers can take advantage of these events to store the transient data into the ‘State’ dictionary object during Deactivated event and read them back during Activated event.

Keep in mind that there is a time limit imposed on the Deactivated event. Any actions taken in the Deactivated event handler must be completed within ten seconds or the Operating System will automatically terminate the application. Therefore, if you want to persist a huge amount of data, you may want to save them incrementally by taking advantage of the Running event.

For more details, refer to the following diagram.

Ff817008.5e84773d-ae0d-43b8-a956-ffdac77b2922(en-us,VS.92).png

Get Adobe Flash playerPlugin by wpburn.com wordpress themes