I have a service that I allow other applications to bind to remotely.
During key events that they record to my service, I show a small
overlay above their app. I use the following:
WindowManager.LayoutParams params;
params = new WindowManager.LayoutParams();
params.flags =
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN |
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL |
WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH
;
params.format = PixelFormat.RGBA_8888;
params.gravity = Gravity.CENTER;
params.type = WindowManager.LayoutParams.TYPE_TOAST;
windowManager.addView(this, params);
Pre ICS I was able to capture the "special" touch event as indicated
by FLAG_WATCH_OUTSIDE_TOUCH. If the touch landed in my overlay, I
would launch an activity. Otherwise I would ignore the touch event.
In both cases the underlying activity would receive the touch event.
This all works fine until I try to use this code on ICS. Now I am
unable to capture any touch events for my overlay.
So in summary what I want is this:
*Draw a temporary view from a remote service
* Not pause the running activity
* Not take all touch events from the running activity
* Detect with my temporary view is touched.
I realize that the method I have used in the past may not be
supported. If anyone has any suggestions outside of "don't do this"
to get the stated functionality I would very much appreciate it.
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