Do not let user close application / or perform an action before closing

0

Personal in my application the user places a request, this request gains a new status, I want it when it closes the application as soon as it is executing the request, the status is changed to canceled and sent to the server. I tried to implement this in onDestroy but it did not work.

When I say close the application is when it displays all open applications and drag the application next, then it closes.

Or, if possible, do not let the app close.

    
asked by anonymous 19.05.2015 / 21:58

0 answers