When I close an Android SurfaceView Activity (this sometimes happens
when bringing up the menu for that activity as well), the app
sometimes pauses and almost gets an ANR (Application Not Responding)
message. Looking at LogCat, it appears to be timing out trying to send
keys to it. I tried modifying the code to setFocusable(false) when in
the onKeyDown handler for the SurfaceView, but that doesn't seem to
affect this. Any other ideas on what might be causing this? Or what
these messages in Logcat even mean?
If you wait for a few seconds, it becomes responsive again.  This
happens on Android 1.5 and 2.1 devices (I was hoping it was just a 1.5
bug) but doesn't seem as noticeable on faster devices like the
Droid...

=============================

05-31 19:35:35.285: INFO/WindowManager(586): focus null mToken is null
at event dispatch!

05-31 19:35:35.295: WARN/WindowManager(586): Current state:
{{KeyEvent{action=1 code=4 repeat=0 meta=0 scancode=158 mFlags=8} to
null @ 1275334535292 lw=null lb=null fin=true gfw=true ed=true tts=0
wf=false fp=false mcf=null}}

05-31 19:35:35.305: WARN/WindowManager(586): Continuing to wait for
key to be dispatched

05-31 19:35:40.306: WARN/WindowManager(586): Key dispatching timed out
sending to

05-31 19:35:40.316: WARN/WindowManager(586): Dispatch state:
{{KeyEvent{action=0 code=4 repeat=0 meta=0 scancode=158 mFlags=8} to
Window{43763540 com.myapp/com.myapp.DiagramEdit paused=false} @
1275334499512 lw=Window{43763540 com.myapp/com.myapp.DiagramEdit
paused=false} lb=android.os.binderpr...@43702190 fin=false gfw=true
ed=true tts=0 wf=false fp=false mcf=null}}

05-31 19:35:40.326: INFO/WindowManager(586): focus null mToken is null
at event dispatch!

05-31 19:35:40.326: WARN/WindowManager(586): Current state:
{{KeyEvent{action=1 code=4 repeat=0 meta=0 scancode=158 mFlags=8} to
null @ 1275334540327 lw=null lb=null fin=true gfw=true ed=true tts=0
wf=false fp=false mcf=null}}

05-31 19:35:40.326: WARN/WindowManager(586): Continuing to wait for
key to be dispatched

-- 
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