Click here to Skip to main content
Click here to Skip to main content

Tagged as

Windows Phone 8–Application Model & Fast Application Resume feature

, 2 Apr 2013
Rate this:
Please Sign up or sign in to vote.
Windows Phone 8 has a new feature introduced called as ‘Fast Application Resume’, which allows the Windows Phone 8 OS to launch the application from suspended to running quickly. You feel like toggling between multiple apps with out much delay comparing to Windows Phone 7.x platform. With Windows Ph

Windows Phone 8 has a new feature introduced called as ‘Fast Application Resume’, which allows the Windows Phone 8 OS to launch the application from suspended to running quickly. You feel like toggling between multiple apps with out much delay comparing to Windows Phone 7.x platform.

With Windows Phone 7.5, OS was allowed to move the applications to Suspended/Dormant state, if another application is launched or currently running. This allows only one application can be running in the foreground at a time, and other applications you launched previously will be put on Suspended/Dormant mode.  You can bring back the previously running applications(that is currently in suspended/dormant mode), by selecting the app from the Task Switcher(press and hold – <back button for few seconds to display all list of suspended apps in memory).

The following diagram explains the application life cycle of a Windows Phone application:

Windows Phone 7.x – Application Lifecycle

Win 7 Mango - Lifecycle.png

[Image Courtesy: Nokia Developer]

A simple diagram: that explains how the application lives and dies in Windows Phone app

State diagram showing transitions between app execution states

[Image courtesy: Microsoft]

For more information on the lifecycle of a Windows Phone app see App activation and deactivation for Windows Phone.

How is it different in Windows Phone 8.0

[Quoting from – MSDN

On Windows Phone 8, when the user navigates away from an application, the application is suspended and its state is preserved in memory. If the user returns to the application by pressing the Back button or by using the Task Switcher, the app instance resumes. Because the app was preserved in memory, the app quickly resumes in the same state it was when the user navigated away. This process is called Fast App Switching (FAS).

By default(on both Windows Phone 7.x and Windows Phone 8.0 platform) – If the app is suspended and the user relaunches the app, such as by tapping on the app name in the app list or tapping the app’s primary Start Tile, by default the old instance of the app is terminated and a brand new instance of the app is created. This process is slower than resuming a suspended app and provides a different user experience. This is scenario as Windows Phone 7.x.

Windows Phone 8 introduces the ability for apps to request that user actions that would typically relaunch the app, such as tapping the app’s Start Tile, instead resume the suspended instance of the suspended app instance, if one exists. This feature is called Fast Resume.

[source]

To Enable the Fast Application Resume in your Windows Phone 8 applications – you can do it by adding an option(ActivationPolicy="Resume") in app manifest file(WMAppManifest.xml)

See how you can do it in visual studio:

wp8_far

Code block:

<DefaultTask Name="_default" NavigationPage="MainPage.xaml" ActivationPolicy="Resume"/>

Sounds Cool! right – this can improve your application performance in Windows Phone 8, while toggling between different apps.

For more information on the Fast Application Resume Fast app resume for Windows Phone 8.

References

The post Windows Phone 8–Application Model & Fast Application Resume feature appeared first on Nithin Mohan T K's Space.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

NitRiX Reloaded
Technical Lead
India India
http://about.me/nithinmohantk
Follow on   Twitter

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web02 | 2.8.140821.2 | Last Updated 2 Apr 2013
Article Copyright 2013 by NitRiX Reloaded
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid