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



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

Answer / 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

More Windows Phone OS Interview Questions

Suppose I am trying to receive toast notifications in emulator app. I got everything setup but notification does not show up in emulator at all?

0 Answers  


Tell me can I get weather for my location?

1 Answers  


Is securestring supported in windows phone?

0 Answers  


Is wcf supported in windows phone?

0 Answers  


Suppose I have lost one of the application templates in visual studio 2010. It's available in the file system but not in visual studio... Any ideas?

0 Answers  


Is it possible to run two instances of emulator on the same machine. I am doing some networking app and need two emulators to test it?

0 Answers  


Explain how to send suggestions on how to better the app to the ap?

0 Answers  


Explain how to enable/disable alerts?

0 Answers  


How to detect the resolution of my device?

1 Answers  


How to pin an app on the emulator?

1 Answers  


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

0 Answers  


Is it temporary that the control styles are included in app.xaml?

0 Answers  


Categories