I\'ve been bugged by this for a while. How do I properly handle screen orientation changes while I have a separate Thread
/ AsyncTask
running? Curr
I already popped up similar question here.
Basically there is an example of how to pause/resume an AsynTask
on device rotation. However it still does not fit for all cases (sometimes it is not possible to safely suspend the action, such as a new user creation on a remote server). For those "unsafe" cases you need to code somewhat I'd call a tricky "framework". You will see CommonsWare gives github links to the one.