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
Exitting an App on Android from Recents list
Re: Exitting an App on Android from Recents list
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.
Re: Exitting an App on Android from Recents list
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.
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.
- airsoftsoftwair
- Posts: 5441
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Exitting an App on Android from Recents list
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