Activity已在Dialog show()方法中泄露窗口

时间:2017-09-08 21:16:19

标签: java android

当我通过volley的API调用上传三张大尺寸图片时会发生这种情况。

android.view.WindowLeaked: Activity com.laeb.laebproject.CreateTeamActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{390f2144 V.E..... R.....ID 0,0-684,232} that was originally added here
                                                                         at android.view.ViewRootImpl.<init>(ViewRootImpl.java:457)
                                                                         at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:278)
                                                                         at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
                                                                         at android.app.Dialog.show(Dialog.java:311)
                                                                         at com.laeb.laebproject.team_fragments.FragmentCreateTeam.createTeam(FragmentCreateTeam.java:151)
                                                                         at com.laeb.laebproject.team_fragments.FragmentCreateTeam$1.onClick(FragmentCreateTeam.java:120)
                                                                         at android.view.View.performClick(View.java:4848)
                                                                         at android.view.View$PerformClick.run(View.java:20262)
                                                                         at android.os.Handler.handleCallback(Handler.java:815)
                                                                         at android.os.Handler.dispatchMessage(Handler.java:104)
                                                                         at android.os.Looper.loop(Looper.java:194)
                                                                         at android.app.ActivityThread.main(ActivityThread.java:5651)
                                                                         at java.lang.reflect.Method.invoke(Native Method)
                                                                         at java.lang.reflect.Method.invoke(Method.java:372)
                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)

0 个答案:

没有答案