I'm seeing a number of these exceptions from my users, but am unable
to reproduce.  It's on my UI thread, but I have no idea what could be
causing it.  I do display a WebView in a couple of instances, and
apparently one or more of them is trying to show the zoom controls in
response to a touch event:

android.view.WindowManager$BadTokenException: Unable to add window --
token android.view.viewroo...@4318b8f8 is not valid; is your activity
running?
  android.view.ViewRoot.setView(ViewRoot.java:425)
  android.view.WindowManagerImpl.addView(WindowManagerImpl.java:178)
  android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
  android.view.Window$LocalWindowManager.addView(Window.java:392)
  android.widget.ZoomButtonsController.setVisible
(ZoomButtonsController.java:371)
  android.webkit.WebView.onTouchEvent(WebView.java:3622)
  android.view.View.dispatchTouchEvent(View.java:3368)
  android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:831)
  android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
  android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
  android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
  android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
  android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
  com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1707)
  com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1197)
  android.app.Activity.dispatchTouchEvent(Activity.java:1993)
  com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1691)
  android.view.ViewRoot.handleMessage(ViewRoot.java:1525)
  android.os.Handler.dispatchMessage(Handler.java:99)
  android.os.Looper.loop(Looper.java:123)
  android.app.ActivityThread.main(ActivityThread.java:3948)
  java.lang.reflect.Method.invokeNative(Native Method)
  java.lang.reflect.Method.invoke(Method.java:521)
  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
  dalvik.system.NativeStart.main(Native Method)

Is this a known problem?  Is there anything I should be doing special
when displaying a WebView?  AFAIK I never had this problem before
cupcake.  Thanks.

-- Peter

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to