android - How can I manage OnApp exit event and do something before app closes? -


i have send requests server before app exits.

but app close asynctasks killed , requests aren't being sent web service.

make yourbasicactivity , override onpause() method , extend every activity yourbasicactivity

run code when android app closed/sent background

you can try ontaskremoved

how detect application exit on android?


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

Maven Javadoc 'Cannot find default setter' and fails -