How can i stop my activity from refreshing when i unlock my phone
<p>I have activity that refreshes every time i unlock my screen. it also refreshes if the back light goes off and i tap the screen to turn it on. can any one suggest me how can i prevent my  activity from refreshing.</p>

<p>thanks in advance.</p>
