當完成了顯示對話框中的活動,警告將顯示爲波紋管,做這個結果內存泄漏,或者只是警告是否機器人windowLeak導致內存泄漏?
WindowManager: android.view.WindowLeaked: Activity MainActivity
has leaked window com.android.internal.policy.PhoneWindow$DecorView{a310978 V.ED..... R......D 0,0-1080,1704}
that was originally added here
at android.view.ViewRootImpl.<init>(ViewRootImpl.java:368)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:299)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
at android.app.Dialog.show(Dialog.java:319)
at com.snail.labaffinity.activity.FullScrreenDialog.show(FullScrreenDialog.java:81)
at com.snail.labaffinity.activity.MainActivity.alertdialog(MainActivity.java:71)
at com.snail.labaffinity.activity.MainActivity$$ViewBinder$4.doClick(MainActivity$$ViewBinder.java:47)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:5204)
at android.view.View$PerformClick.run(View.java:21153)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
謝謝,我知道這一點。不過,我不知道是否windowleak導致內存泄漏 – happysnail