How to stop alert on lock/unlock event?
<p>I have a service in which I am starting an alert whenever SMS/Email is received, but now I want to stop the alert (if it is playing) once user unlock the screen.</p>

<p>For alerting I am using MediaPlayer class.</p>

<p>Please help me.</p>

<p>Thanks</p>
