How do I keep receiving onTouchEvent when my app is in “onPause” or “onStop” status?
In other words, I want to know if I made ACTION_DOWN or such gestures while my app is running on the background. Of course, when I exit the app, it shouldn’t work. Can someone help me on this? Thank you so much
How do I keep receiving onTouchEvent when my app is in onPause or onStop
Share
Create a window of type TYPE_SYSTEM_OVERLAY. You need extra permissions for this. This window will receive the touch events.
Update: It seems as this only worked before: TYPE_SYSTEM_OVERLAY in ICS