BrowserActivity 已泄漏窗口
这是什么错误?
11-25 09:38:33.233: ERROR/WindowManager(248): Activity com.android.browser.BrowserActivity has leaked window android.widget.LinearLayout@44f997e0 that was originally added here
11-25 09:38:33.233: ERROR/WindowManager(248): android.view.WindowLeaked: Activity com.android.browser.BrowserActivity has leaked window android.widget.LinearLayout@44f997e0 that was originally added here
11-25 09:38:33.233: ERROR/WindowManager(248): at android.view.ViewRoot.<init>(ViewRoot.java:227)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.view.Window$LocalWindowManager.addView(Window.java:424)
11-25 09:38:33.233: ERROR/WindowManager(248): at com.android.browser.BrowserActivity.showFakeTitleBar(BrowserActivity.java:1037)
11-25 09:38:33.233: ERROR/WindowManager(248): at com.android.browser.BrowserActivity.access$2100(BrowserActivity.java:153)
11-25 09:38:33.233: ERROR/WindowManager(248): at com.android.browser.BrowserActivity$7.onPageStarted(BrowserActivity.java:2597)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:234)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.os.Handler.dispatchMessage(Handler.java:99)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.os.Looper.loop(Looper.java:123)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.app.ActivityThread.main(ActivityThread.java:4363)
11-25 09:38:33.233: ERROR/WindowManager(248): at java.lang.reflect.Method.invokeNative(Native Method)
11-25 09:38:33.233: ERROR/WindowManager(248): at java.lang.reflect.Method.invoke(Method.java:521)
11-25 09:38:33.233: ERROR/WindowManager(248): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
11-25 09:38:33.233: ERROR/WindowManager(248): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
11-25 09:38:33.233: ERROR/WindowManager(248): at dalvik.system.NativeStart.main(Native Method)
What's this error?
11-25 09:38:33.233: ERROR/WindowManager(248): Activity com.android.browser.BrowserActivity has leaked window android.widget.LinearLayout@44f997e0 that was originally added here
11-25 09:38:33.233: ERROR/WindowManager(248): android.view.WindowLeaked: Activity com.android.browser.BrowserActivity has leaked window android.widget.LinearLayout@44f997e0 that was originally added here
11-25 09:38:33.233: ERROR/WindowManager(248): at android.view.ViewRoot.<init>(ViewRoot.java:227)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.view.Window$LocalWindowManager.addView(Window.java:424)
11-25 09:38:33.233: ERROR/WindowManager(248): at com.android.browser.BrowserActivity.showFakeTitleBar(BrowserActivity.java:1037)
11-25 09:38:33.233: ERROR/WindowManager(248): at com.android.browser.BrowserActivity.access$2100(BrowserActivity.java:153)
11-25 09:38:33.233: ERROR/WindowManager(248): at com.android.browser.BrowserActivity$7.onPageStarted(BrowserActivity.java:2597)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:234)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.os.Handler.dispatchMessage(Handler.java:99)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.os.Looper.loop(Looper.java:123)
11-25 09:38:33.233: ERROR/WindowManager(248): at android.app.ActivityThread.main(ActivityThread.java:4363)
11-25 09:38:33.233: ERROR/WindowManager(248): at java.lang.reflect.Method.invokeNative(Native Method)
11-25 09:38:33.233: ERROR/WindowManager(248): at java.lang.reflect.Method.invoke(Method.java:521)
11-25 09:38:33.233: ERROR/WindowManager(248): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
11-25 09:38:33.233: ERROR/WindowManager(248): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
11-25 09:38:33.233: ERROR/WindowManager(248): at dalvik.system.NativeStart.main(Native Method)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这意味着您已经在 BrowserActivity 中启动了任何窗口(例如:警报或对话框),并且在关闭该窗口之前,您已经启动了新的活动。
在开始新活动之前关闭该窗口。
It means you have started any window (say: Alert or Dialog) in BrowserActivity, and before dismissing that window, you have started new Activity.
Dismiss that window before starting new Activity.