Alessandro71 Well-Known Member Licensed User Longtime User Nov 27, 2025 #1 Is there a way to trap the user action of removing the app from the task list? I don't want to block the action, just having the change to flush some log files before being killed
Is there a way to trap the user action of removing the app from the task list? I don't want to block the action, just having the change to flush some log files before being killed
Solution Erel Nov 30, 2025 The Application_Inactive event will be raised when the app moves to the background or when the user switches to the "recent apps" view.
The Application_Inactive event will be raised when the app moves to the background or when the user switches to the "recent apps" view.
Erel B4X founder Staff member Licensed User Longtime User Nov 30, 2025 #2 The Application_Inactive event will be raised when the app moves to the background or when the user switches to the "recent apps" view. Upvote 0 Solution
The Application_Inactive event will be raised when the app moves to the background or when the user switches to the "recent apps" view.
Alessandro71 Well-Known Member Licensed User Longtime User Nov 30, 2025 #3 Erel said: The Application_Inactive event will be raised when the app moves to the background or when the user switches to the "recent apps" view. Click to expand... I see that Application_Inactive is not defined in the default B4XPages template. May I define it without calling any B4XPages.Delegate. unlike Application_Background and Application_Foreground, or should I call something else before End Sub? Upvote 0
Erel said: The Application_Inactive event will be raised when the app moves to the background or when the user switches to the "recent apps" view. Click to expand... I see that Application_Inactive is not defined in the default B4XPages template. May I define it without calling any B4XPages.Delegate. unlike Application_Background and Application_Foreground, or should I call something else before End Sub?
Erel B4X founder Staff member Licensed User Longtime User Dec 1, 2025 #4 You can handle it in the Main module without delegating the event. Upvote 0