Actually, I should clarify. I have an Activity, A. There's an Application, B, that is launched at any given point in time. Application B launches Activity C (on top of Activity A, but Activity C is flagged with FLAG_NOT_TOUCH_MODAL). The Application B is never visible, never in focus (and obviously has no onKeyUp or onKeyDown methods). I'm returning key events from Activity C via super.onKeyUp and super.onKeyDown. However, my Activity C is never receiving any key events (and apparently Activity A no longer receives key events when Application B is launched).
I'm assuming the key events are getting thrown up into the system and landing... somewhere. So... how do I forward key events to Activity C from Activity A while an Application B is running? I hope this isn't too confusing... but I'm assuming someone's run into this problem before. Thanks. On Dec 2, 4:44 pm, bizack <[email protected]> wrote: > I have an Activity which has no window (but it has a view). > > I'm using: > getWindowManager().addView(view, params); > > I've attempted to call takeKeyEvents(true), however I see that > takeKeyEvents first retrieves the Window and then calls takeKeyEvents > on that Window. In my case, the Window is null. > > What this means is that I never receive onKeyUp and onKeyDown calls, > which I need in order to intercept some key presses from external > input devices (similar to a handsfree set for example). > > Any hints as to how I would accomplish this? > > Thanks. -- 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

