可能重複:
How to deal with orientation change with a ProgressDialog showing?如何處理ProgressDialog方向更改?
08-14 17:23:31.078: E/AndroidRuntime(25099): FATAL EXCEPTION: main
08-14 17:23:31.078: E/AndroidRuntime(25099): java.lang.IllegalArgumentException: View not attached to window manager
08-14 17:23:31.078: E/AndroidRuntime(25099): at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:378)
08-14 17:23:31.078: E/AndroidRuntime(25099): at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:223)
08-14 17:23:31.078: E/AndroidRuntime(25099): at android.view.Window$LocalWindowManager.removeView(Window.java:432)
08-14 17:23:31.078: E/AndroidRuntime(25099): at android.app.Dialog.dismissDialog(Dialog.java:278)
08-14 17:23:31.078: E/AndroidRuntime(25099): at android.app.Dialog.access$000(Dialog.java:71)
08-14 17:23:31.078: E/AndroidRuntime(25099): at android.app.Dialog$1.run(Dialog.java:111)
08-14 17:23:31.078: E/AndroidRuntime(25099): at android.app.Dialog.dismiss(Dialog.java:268)
08-14 17:23:31.078: E/AndroidRuntime(25099): at android.app.Dialog.cancel(Dialog.java:951)
以上是我的時候我的旋轉屏幕,而正在顯示我的進度對話框什麼,我得到。 我怎樣才能解決這個問題?
添加代碼... – tolgap 2012-08-14 11:58:10
您是否嘗試過這個'機器人:configChanges =你的活動中的「定位」? – Praveenkumar 2012-08-14 12:01:23
我試過..它的工作..但我的活動佈局是不同的景觀和肖像。當我從肖像開始......景觀的原始佈局被potrait的佈局取代。你能幫我嗎? – Debopam 2012-08-14 12:46:03