Beruflich Dokumente
Kultur Dokumente
Master subtitle
style
02 | App Lifecycle
Michael Palermo | @palermo4
Jeremy Foster | @codefoster
Module Overview
Launching, suspending, and resuming
Testing lifecycle events in Visual Studio
File and URI activation
Secondary tile activation
Click to edit
Master subtitle
style
Application Lifecycle
Launch
An app is launched whenever it is activated by the
user while the process is in the NotRunning state.
Suspend
An app can be suspended when the user switches
away from it or when the device enters a low power
state. Most apps stop running when the user
switches away from them.
When the user moves an app to the background, the
OS waits a few seconds to see whether the user
immediately switches back to the app. If the user
does not switch back, the OS suspends the app.
Resume
A suspended app is resumed when the user switches
to it or when the device comes out of a low power
state.
If a suspended app is activated to participate in an
app contract or extension, it receives the resuming
event first, then the activated event.
When an app is suspended, it does not receive
network events that it registered to receive. These
events are not queued, they are simply missed.
Therefore, your app should test the network status
Click to edit
Master subtitle
style
Click to edit
Master subtitle
style
Declarations
In platform project package.appxmanifest files
DEMO
Community Megaphone
Click to edit
Master subtitle
style
Secondary Tiles
var secondaryTile = new
Windows.UI.StartScreen.SecondaryTile("dom");
== dom
DEMO
Visual Studio: CodeShow Secondary Tile
Summary
Launching, suspending, and resuming
Testing lifecycle events in Visual Studio
File and URI activation
Secondary tile activation
2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered
trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of
Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a
commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT
MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.