Manage app lifecycle so our apps feel "always alive"

2012-05-15


Manage app lifecycle so our apps feel "always alive"

Did you know that The app lifecycle model in Windows 8 means that users no longer need to manage which apps are running. It also makes it easy for developers to craft a great user experience that doesn’t affect the device’s battery or performance when the app is in the background. Using the new lifecycle events, your app will always feel alive, even though it never runs when it is off-screen.


nowadays batteries often run low on laptops, tablets, and phones, because all of us tend to leave apps running even when we’re not using them. We do this for convenience and to switch quickly between apps.

now had this in mind as we developed the lifecycle model for Metro style apps in Windows 8 – keeping apps responsive, preserving battery life, and providing excellent, consistent performance. Metro style apps are all about full-screen, immersive experiences. As such, the new lifecycle model in Windows 8 focuses on the apps in the foreground, ensuring that the experience the user is actively engaged and gets the full power of the device. In this post, I’ll walk you through the new states of the lifecycle model and what you need to do to make your app great.

Metro style app lifecycle

Your Metro style app is in one of 4 lifecycle states at any given time: not running, running , suspended or terminated. As your app transitions between states, it receives lifecycle events that help you provide a consistent and high performance experience to your users.

This diagram shows how a Metro style app transitions between states:

0 comments:

Post a Comment