In my Activity I use multiple AsyncTask classes.
How to cancel AsyncTask when Activity finishes?
I don't understand if your "cancel" means rollback but you have a cancel method on the AsyncTask class.