If I close my app with the back-button, the event Application_Closing
is raised and the code is executing.
When I close my app in the list with active apps, no event is raised...
I really need an event for this.
Does anyone know a solution?
If I close my app with the back-button, the event Application_Closing
is raised and the code is executing.
When I close my app in the list with active apps, no event is raised...
I really need an event for this.
Does anyone know a solution?
There is no event to detect when your app is terminating from the app list. When your app goes to background it will be tombstoned.
You can react on this with the Application_Deactivated
event. So you should handle both events Application_Deactivated
and Application_Closing
.
Learn more about the app's lifecycle here.