Prevent orientation change when users pushes display-turn-off/on button
<p>I've got an activity that is in a landscape mode - it's a player. Whenever I hit display-off button activity gets recreated and the screen goes black. After that I hit display-on to bring the interface back and the activity gets recreated again.</p>

<p>I guess this is because on my samsung i9001 display button not only shuts down the display but also brings that system-desktop to the foreground - so it's the first orientation change that causes activity recreation. Furthermore, when display gets active again and the activity starts it needs to change orientation/create activity again(not sure about it).</p>

<p>My question is how do I prevent the first recreation of the activity when I hit display-off. Is it possible ?</p>
