So I'm digging into tombstoning of WP7 but haven't found sufficient information on when Application_Deactivated is not run (and so is not Application_Closing).
I could imagine it not being run in the following scenarios:
Q: Are the above assumptions true, and are they the only cases?
Could for example a background-agent of another application not throw an exception causing your application currently in the foreground to terminate abruptly? (Just spitballing..)
As far as I am aware Application.Deactivated is always raised unless:
In all other cases that the OS deactivates (tombstones) the app the event will be raised. When the battery gets critically low the OS shuts down. This is a normal shutdown so Application.Deactivated or Application.Closing will be called (I'm not sure which but I would assume the latter).
An unhandled exception in someone elses background agent will not affect your app.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.