Take the 2-minute tour ×

Possible Duplicate:
Force Screen On

I need block the save power of device when my app is runs. No problem if screen goes down (my app is an audio app). I read about power manager and I discover this (that keep screen on). How disallow save power to device when my app runs?

share|improve this question

marked as duplicate by Eric, Simon, brian d foy, Bohemian, Joe Jan 27 '13 at 13:50


add comment

1 Answer

up vote 1 down vote accepted

You will need to carefully use a partial WakeLock, as is discussed in the PowerManager documentation. acquire() it when your audio starts playing, and release() it when the audio stops.

share|improve this answer
add comment
