BroadCaste reciever invoking if screen is off
<p>I am doing an app which lock the screen if we shake the phone, I had written the code for screen off,But now the problem is i need a broadcaste receiver which checks whether the screen is off or on,How can i do it</p>
