这是什么错误?
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)
答案 0 :(得分:0)
这意味着您已在BrowserActivity中启动任何窗口(例如:警报或对话框),在关闭该窗口之前,您已启动了新的活动。
在开始新活动之前关闭该窗口。