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

is there an api for retrieving information on the files located in the store? I am looking to check when it was last written?

0 Answers  


How to change language settings?

1 Answers  


Why did my phone go into safe mode?

0 Answers  


Tell me about Windows Phone User interface?

1 Answers  


What happened to toplevelnavigationservice, it is not there on april ctp refresh?

0 Answers  






Explain how to pin an app on the emulator?

0 Answers  


Suppose have a very simple application that uses the applicationbar. The app bar shows one menu item when in portrait. However as the second image shows theapp bar displays now items in landscape mode. Is that by design or a bug?

0 Answers  


Can I turn off some of my local papers?

0 Answers  


Are there canned mvvm "data behaviors" planned for wp7?

0 Answers  


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  


How to save Silverlight UIElements into an image?

1 Answers  


Explain how to restart or shutdown my application programmatically?

0 Answers  






Categories