FLAG_TOUCHABLE_WHEN_WAKING
<p>I'm trying to recieve touch notification after the screen goes to sleep in my app. However, I cannot receive the first touch event, only the consecutive ones.</p>

<pre><code>WindowManager.LayoutParams lp = new WindowManager.LayoutParams(
            WindowManager.LayoutParams.WRAP_CONTENT,
            WindowManager.LayoutParams.WRAP_CONTENT,
            WindowManager.LayoutParams.TYPE_SYSTEM_ALERT,
            WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |
                  WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH | 
            WindowManager.LayoutParams.FLAG_TOUCHABLE_WHEN_WAKING,
            PixelFormat.TRANSLUCENT);
</code></pre>
