Sep 7, 2018 · 1 min read
Let’s say I want to send some information via retrofit using a static inner class, but if the user rotates the screen when retrofit is being called the task will be canceled because I am canceling it in onDestroy(). Could I not cancel it in onDestroy, so the call could keep being made even though the user rotates the screen. And if he really wants to destroy the activity to navigate to another one, as pressing the back button, I could ask him if he wants to leave the call?
