[android-developers] Capture keyEvent from view displayed by WindowManager.addView()

2011-04-15 Thread Bruce Xia
Hi, I have a view which basically cover the full screen to capture key input. It works well if I add it to activity, but if I display it from background service using WindowManager.addView, it doesn't work. Another quesiton is why onKeyDown/onKeyUp doesn't work? As you see I have to use

Re: [android-developers] Capture keyEvent from view displayed by WindowManager.addView()

2011-04-15 Thread Mark Murphy
On Fri, Apr 15, 2011 at 6:12 PM, Bruce Xia xia...@gmail.com wrote: I have a view which basically cover the full screen to capture key input. It works well if I add it to activity, but if I display it from background service using WindowManager.addView, it doesn't work. Thank heavens! That