How to detect if my application is exiting so I can save state?

Answer Posted / diana

You can listen to Application.Exit, but this might be too late most of the time. You should listen for the Pause event and save your state there.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sniff network traffic from the emulator?

76


Explain how to get the geolocation data on a picture?

51


Explain how to save silverlight uielements into an image?

60


What is windows phone bluetooth?

132


How to deserialize json from a rest call?

135






Explain how to manage my isolated storage quota?

52


Some images look different when synced to the device and read programmaticaly. Do decoders change these?

62


Why did my phone go into safe mode?

40


Explain how to play video in isolatedstorage using mediaelement?

61


Suppose tried two separate web cams in the emulator and both give com errors, any clue on getting this to work?

94


How do you know you have a virus on your phone?

35


Where is xmldocument class?

58


Tell me in my code the method marked by [ondeserialized] is never called after deserialization. Is this a known issue?

123


On april ctp refresh, splashscreen appears for 3 seconds and disappears (even if my page is not fully loaded)?

71


Can we intercept the search button to do an app specific search?

69