How to deal with orientation change with a ProgressDialog showing?

前端 未结 6 1115
余生分开走
余生分开走 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 17:49

    Try adding this attribute android:configChanges="orientation" to your Activity element in the AndroidManifest.xml file.

提交回复
热议问题