The AsyncTask fails when I rotate the device to landscape
问题 I have an Activity in which I have a ProgressBar ,an ImageView and a TextView ,I update all three from an AsyncTask .All three get updated when the screen is completely in one orientation when the task is running,but the ImageView and TextView are not displayed and the ProgressBar freezes when the screen orientation changes from one orientation to another. Adding the attach and detach methods to the task and using retainNonConfigurationInstance to return the task when the Activity and using