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.