Please enable Javascript to correctly display the contents on Dot Net Tricks!

Understanding Windows Apps Life Cycle

  Author : Shailendra Chauhan
Posted On : 17 Feb 2013
Total Views : 6,398   
Updated On : 26 Sep 2016

Before going to start the development of windows apps, lets take a look into the apps life cycle. As you know windows 8 can load and run multiple applications at a time just like to previous version of windows. More over Windows 8 is very smart in the management of running apps, it can automatically suspends (and sometimes terminates) apps that are running in the background or not in use to save the system memory and battery of your windows 8 device like laptops,tablets & phone etc.

Windows 8 automatically launched the suspended or terminated apps when it is requested. In this way your windows apps will always feel alive.

Windows Apps Life Cycle

It is important to know the states of your apps life cycle, running on Windows 8 device. The below fig. is showing the transitions of your apps among various states of the life cycle.

  1. Not Running

    This state indicates, your apps is not running and this state can achieved by the apps after suspended state means when apps is terminated then it will come into not running state.

  2. Running

    When your application is activated, it comes into the running state. From running state your apps can be moved to the suspended state.

  3. Suspended

    Usually, your windows app goes into suspended state when you switch away to another app. In suspended state your apps reside in the memory so that it can be resumed at any time. Usually when user switches back to the application, it automatically resumed means come into the running state from suspended state.

  4. Terminated/Not Running

    When your apps is terminated, it stops running and moved into the not running state from suspended state. Moreover apps also removed from the memory.


  1. When you switch from one app to another app, system will wait for a couple of seconds before suspending it, since it might be case you are planning to return to it quickly.

  2. Usually, when the system runs out of resources, your app might enter into the suspended state.

  3. System can also terminate a suspended app at any time to release the memory for other apps or to save power.

  4. When you close your app by pressing Alt+F4 or using the close gesture, your app will be suspended for 10 seconds and after that it will be terminated by the system.

  5. When your app is suspended and then resumed, you need not to write any extra code to achieve this since it is automatically managed by the system.

What do you think?

I hope you will enjoy the tips while developing your windows apps. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

Free Interview Books
24 SEP
Angular2 and Angular4 (Classroom)
08:30 AM-11:30 AM IST
23 SEP
MEAN Stack (Classroom)
8:30 Am To 11:30 Am
23 SEP
Microsoft Azure Infrastructure Solutions (Online)
08:00 PM-11:00 PM IST / 9:30 AM-12:30 PM CST
20 SEP
MEAN Stack (Online)
07:00 AM-09:00 AM IST
20 SEP
ASP.NET MVC with Angular4 (Online)
9:00PM- 11:00PM IST(+5:30GMT)
16 SEP
Angular2 and Angular4 (Online)
08:00 AM-10:00 AM IST(+5.30 GMT)
ASP.NET MVC with Angular4 (Online)
09:00 PM to 11:00 PM IST (+5:30 GMT)
22 AUG
ASP.NET Core with Angular4 (Online)
07:00 AM - 9:00 AM IST(+5:30 GMT)
19 AUG
MEAN Stack 2 (Online)
5:30 Pm - 7:00 PM IST (+5:30 GMT)
19 AUG
ASP.NET MVC with Angular4 (Online)
10:30 Am to 12:30 PM IST (+ 5:30 GMT)
19 AUG
NodeJS with Angular4 (Classroom)
04:00 PM to 07:00 PM IST (+5:30 GMT)
12 AUG
ASP.NET MVC with Angular4 (Classroom)
11:30 AM - 1:30 PM IST (+5:30GMT)
15 JUL
ASP.NET MVC with Angular4 (Online)
03:30 PM - 05:30 PM IST(+5.30 GMT)