So, earlier I posted a question about receiving touch events from a service (apparently no one knows the answer).
After trying to figure it out myself for hours, I gave up and decided to email a developer known as RubberBigPepper. I asked him how he did it in his app Volume control and he promptly responded "TYPE_SYSTEM_ALERT window".
What does this mean, and how can it be implemented in code?
EDIT:
I used the following method:
getWindow().addFlags(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
and the window failed to receive touch events.
I emailed him about this as well and he says: "Use the WindowService to add your window"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…