04-28 14:16:44.346 13517-15819/com.picc.fund W/System.err: java.lang.IllegalArgumentException: View=DecorView@700c91[] not attached to window manager
/////////////
在activity销毁的时候dialog没被销毁,引起的问题。所以要让dialog的生命周期和activity同步,在activity的onDestroy方法里,dialog要dissmiss掉。
2 android.view.WindowLeaked: Activity com.aresoft.activity.trade.FixActivity has leaked window DecorView@700c91[] that was originally added here
at android.view.ViewRootImpl.
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:337)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:94)
at android.app.Dialog.show(Dialog.java:319)
at android.app.ProgressDialog.show(ProgressDialog.java:116)
at android.app.ProgressDialog.show(ProgressDialog.java:104)
at com.aresoft.net.HttpTask.initDialog(HttpTask.java:53)
at com.aresoft.net.HttpTask.
at com.aresoft.net.WebServiceTask.
at com.aresoft.util.BankCardUtil.queryBankCard(BankCardUtil.java:94)
at com.aresoft.activity.trade.FixActivity.bankAccountQuery(FixActivity.java:275)
at com.aresoft.activity.trade.FixActivity.onResume(FixActivity.java:177)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1270)
at android.app.Activity.performResume(Activity.java:6971)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3470)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3533)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2791)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1532)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:163)
at android.app.ActivityThread.main(ActivityThread.java:6337)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
///////////////////
activity销毁之前,没有dissmiss dialog导致的。