How to put the screen in sleep mode in android?
<p>I am developing one Application. Through that i want to put the screen in sleep mode for a time period. And my screen will be in dim mode. So when a call will come or sms will come, phone will not blink and notify the user. How it is possible??</p>

<p>Please share any sample code.</p>

<p>Thanks. </p>
