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?
Copyright © 2021 Jogjafile Inc.
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_Deactivatedevent. So you should handle both eventsApplication_DeactivatedandApplication_Closing.Learn more about the app's lifecycle here.