Download presentation
Presentation is loading. Please wait.
Published bySusan Hay Modified over 10 years ago
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
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-
11
Demo With No Storage With Storage Fully Working Captain’s Log
14
Lindsay Lindstrom lindsayr@microsoft.com blogs.msdn.com/lindsay @LindsayInPhilly Danilo Diaz danilod@microsoft.com Smallandmighty.net @DaniDiaz
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.