If you cannot use the fragment save instance, you must use the Service or IntentService to start your task. The idea of the Service is that it continues to process whatever happens in the Activity. Since you did not say something about the work of the Task, decide which one is suitable for your application.
AsyncTask Activity, - , . , , Fragment. , onSaveInstanceState(), . : .
, , async ( ) , , .