Don't be scared. What I'm trying to do is for user to be able to define a set of actions for specific keys, display a window and capture it when the event triggers my service. They will install the service as normal and if they don't like it they can remove on the fly.
If it's available when the view added to activity it should be available if it's displayed from a service. Something is missing after the addView process. Also why the OnKeyDown/OnKeyUp not work even the view was on an activity? On Apr 15, 3:37 pm, Mark Murphy <mmur...@commonsware.com> wrote: > 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 would be a massive security flaw. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android 3.0 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en