Exitting an App on Android from Recents list

Discuss GUI programming with the RapaGUI plugin here
Post Reply
davec
Posts: 21
Joined: Thu Sep 03, 2020 10:39 pm

Exitting an App on Android from Recents list

Post by davec »

Hi all,
Is there a way to trigger an event when an app is closed/quit from the recent apps view in Android?

Thanks
Dave
amyren
Posts: 352
Joined: Thu May 02, 2019 11:53 am

Re: Exitting an App on Android from Recents list

Post by amyren »

I am not sure on how android works internally, but wouldnt that kill your app. So that even if it triggered an event, the app would be closed and not able to detect it.
davec
Posts: 21
Joined: Thu Sep 03, 2020 10:39 pm

Re: Exitting an App on Android from Recents list

Post by davec »

Probably.
I just wanted to send a disconnect signal to a server before exitting so the server knew that the client can be removed from a list.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Exitting an App on Android from Recents list

Post by airsoftsoftwair »

I'm afraid that's not possible and not planned either because, as amyren said, I don't think there would be enough time to handle anything. Android apps are rather weird anyway because they aren't really meant to be closed. What Hollywood allows you to do, e.g. calling End() to kill your app, is against the Android styleguide as well :roll:
Post Reply