How to deal with orientation change with a ProgressDialog showing?

前端 未结 6 1108
余生分开走
余生分开走 2020-12-09 17:38

I am showing a ProgressDialog in the onPreExecute method of an AsyncTask object and canceling the ProgressDialog in the onPostExecute

6条回答
  •  执念已碎
    2020-12-09 18:01

    In my case I have used

    android:configChanges="orientation" 
    

    but it did not work for me

    Following is working fine

    
    
    

提交回复
热议问题