Issue with CountDown Timer related to backlight off
<p>I have created a Timer using the CountDownTimer.
Also , when the timer is 5 seconds before completion , a beep sound is played every second till it completes(comes to 0 second).</p>

<p>I am testing on an Android device , where I have set the Screen timeout as 15 seconds.</p>

<p>I found out that after the screen timeout is done , the timer pauses &amp; doesn't complete .
Also , the sound doesnot play.</p>

<p>I am using the following code for PowerManagement / Wake lock but its not solving the issue.</p>

<pre><code>private PowerManager.WakeLock wl;

PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);

                                                                                       wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SampleScreen");
</code></pre>

<p>However , on using the following code</p>

<pre><code>wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "SampleScreen");
</code></pre>

<p>it is working fine , but I want to avoid using the FULL_WAKE_LOCK which consumes a lot of battery. </p>

<p>The requirement is that when the screen is off , the timer should continue running &amp; also the sound file should keep playing every second , 5 seconds before the completion of the timer.</p>

<p>Kindly provide your inputs/sample code on how to handle.</p>

<p>Thanks in advance.</p>

<p>Warm Regards,</p>

<p>CB</p>
