lifecycle - Android How to get force app exit Event? -


my task make flag true when user forcefully exits app. app contains more 20 activities.

i think there no way listen forcefull kill of app event. there wont app instance available in memory recieve such event "if any"

however can achieve same behavior saving preference boolean when user exits app gracefully. when app launched next time, can check graceful_exit boolean preference, if not set know app forcefully killed system / user


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -