Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Windows Phone 8–Application Model & Fast Application Resume Feature

0.00/5 (No votes)
2 Apr 2013 1  
Windows Phone 8 - application model and fast application resume

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 without much delay compared 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 to 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 are currently in suspended/dormant mode), by selecting the app from the Task Switcher (press and hold – <back button for few seconds to display all lists 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, read 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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here