title: how to response click event when screen off
body: <p>i have a app,if my app screen off some times,i want to click the screen to  awake the screen on.i know i can press the power to deal with using flag_user_present to receive the broadcast or </p>
  
  <pre><code>public boolean dispatchKeyEvent(KeyEvent event) {
  if (event.getKeyCode() == KeyEvent.KEYCODE_POWER) {
      //do nothing but show a warning message
      Toast.makeText(this, "you pressed the power button",Toast.LENGTH_SHORT).show();
      return true;
  }
  
    return super.dispatchKeyEvent(event);
  } 
  </code></pre>
  
  <p>but i want to click the screen to do the same thing ,so i overload the ontouch event,but when screen off,the ontouch not receive focus and deal with the click event.
  so my  question  how to deal with click event when screen off(my screen not lock and stay the same activity,only screen off)</p>