Presentation is loading. Please wait.

Presentation is loading. Please wait.

runningdeactivateddormantactivated Phone resources detached Threads & timers suspended Fast App Resume Save State! State preserved! e.IsApplicationInstancePreserved.

Similar presentations


Presentation on theme: "runningdeactivateddormantactivated Phone resources detached Threads & timers suspended Fast App Resume Save State! State preserved! e.IsApplicationInstancePreserved."— Presentation transcript:

1

2

3

4 runningdeactivateddormantactivated Phone resources detached Threads & timers suspended Fast App Resume Save State! State preserved! e.IsApplicationInstancePreserved == true

5 runningdeactivateddormant Phone resources detached Threads & timers suspended Restore state! e.IsApplicationInstancePreserved == false Resuming... Tombstone the oldest app Tombstoned activated

6

7 private void Application_Activated(object sender, ActivatedEventArgs e) { if (e.IsApplicationInstancePreserved) { // Dormant - objects in memory intact } else { // Tombstoned - need to reload }

8 MediaPlayer.Pause MediaElement.Pause SoundEffectInstance.Pause VibrateController.Stop PhotoCamera.Dispose Save page/global state MediaPlayer.Pause MediaElement.Pause SoundEffectInstance.Pause VibrateController.Stop PhotoCamera.Dispose Save page/global state XNA AudioPaused SensorsNotifications suppressed NetworkingCancelled SocketsDisconnected MediaElementDisconnected CameraDisposed

9 MediaElement.Source/Position/ Play Socket.ConnectAsync new PhotoCamera/VideoCamera Restore app state if tombstoned MediaElement.Source/Position/ Play Socket.ConnectAsync new PhotoCamera/VideoCamera Restore app state if tombstoned XNA AudioResumed SensorsNotifications resumed NetworkingCompleted with Cancellation Sockets- MediaElement- Camera-

10

11 Demo With No Storage With Storage Fully Working Captain’s Log

12

13

14 Lindsay Lindstrom lindsayr@microsoft.com blogs.msdn.com/lindsay @LindsayInPhilly Danilo Diaz danilod@microsoft.com Smallandmighty.net @DaniDiaz


Download ppt "runningdeactivateddormantactivated Phone resources detached Threads & timers suspended Fast App Resume Save State! State preserved! e.IsApplicationInstancePreserved."

Similar presentations


Ads by Google