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

What is windows phone?

94


What is the latest version of windows?

35


is there a way to know if my code is running on emulator or device?

93


Explain how to edit location for weather?

24


Will texttrimming property be available on textblock?

36






Can I turn off some of my local papers?

62


Can I get weather for my location?

55


Explain where is xmldocument class?

56


Can I write multi-player games using wi-fi or blue tooth in the device.?

34


What is safety mode on my phone?

12


How to identify a device or a user?

38


I looked through the medialibrary class in xna, and it looks like we can only enumerate through audio, but not video content in the media library?

37


How to sniff network traffic from the emulator?

50


In the emulator, networkinterface.getisnetworkavailable() always return false?

58


Suppose my site is down, and async calls are taking too long to timeout. How can I set a reasonable timeout?

38