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 media support?

530


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

539


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?

542


Explain how to customize front page?

513


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

520






How to get the geolocation data on a picture?

1027


Explain how to identify a device or a user?

522


Explain how to edit location for weather?

478


How to identify a device or a user?

529


Why did my phone go into safe mode?

493


What is safety mode on my phone?

468


Explain how the volume work between apps and hardware buttons on the device?

479


What is the windows phone front page?

664


Can I turn article photos off?

546


Tell me are there canned mvvm "data behaviors" planned for wp7?

499