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

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -