Android Asynctask does not update UI in fragment on orientation change

view story

http://stackoverflow.com – Hey I'm working with fragments and asynctask in android the problem whenever the orientation changes and the asynctask was running the UI of the fragments does not get updated but it works when there is no orientation change. The fragment does not retainInstanceState because it is added to backstack.I would like to ask for your help on how this is done in fragments so here is my code public class ForexInformation extends Fragment{ Spinner fromSpinner, toSpinner; private SharedPreferences prefs; static final String CURRENCIES = "currencies"; String from, to; String fromString, toString; TextV (HowTos)