Presentation is loading. Please wait.

Presentation is loading. Please wait.

Michael Palermo Jeremy Foster

Similar presentations


Presentation on theme: "Michael Palermo Jeremy Foster"— Presentation transcript:

1 Michael Palermo | @palermo4 Jeremy Foster | @codefoster
02 | App Lifecycle Michael Palermo Jeremy Foster

2 Module Overview Launching, suspending, and resuming
Testing lifecycle events in Visual Studio File and URI activation Secondary tile activation

3 Launching, suspending, and resuming

4 Application Lifecycle

5 Launch An app is launched whenever it is activated by the user while the process is in the NotRunning state.

6 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.

7 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 when it is resumed.

8 Testing Lifecycle Events in Visual Studio

9 Debug in Visual Studio

10 File and URI Activation

11 Declarations In platform project package.appxmanifest files

12 Please, do try this at home…
Start | Run… bingmaps: netflix: asdf: codeshow: nickmetroapp: bingmaps:?q=coffee&where=Seattle

13 Community Megaphone

14 Secondary Tile Activation

15 TileID used in application activation event, available via arguments
Secondary Tiles var secondaryTile = new Windows.UI.StartScreen.SecondaryTile("dom"); TileID used in application activation event, available via arguments // in activated event handler… if (args.detail.arguments !== "") { var launchDemo = JSON.parse(args.detail.arguments).launchDemo; if (launchDemo) { // process and navigate } launchDemo == “dom”

16 Visual Studio: CodeShow Secondary Tile

17 Summary Launching, suspending, and resuming
Testing lifecycle events in Visual Studio File and URI activation Secondary tile activation

18


Download ppt "Michael Palermo Jeremy Foster"

Similar presentations


Ads by Google