Keep backlight on through out the app in android
<p>Hello
In my android application i would like to keep the backlight on always,without the screen getting locked.</p>

<p>Is there any way that i can do this.
I am using the below code in my appl;ication but am facing force close.
final PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); 
        PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK , "My Tag"); 
        wl.acquire(); </p>

<hr>

<p>w1.release;</p>

<p>Have also used user permission in manifest.</p>

<p>To be more clear i have placed this in my splash screen but the issue is like the splash screen gets started after a particular time the screen shows force close after a bright light.</p>

<p>Could you please let me know if there is any solution for this.</p>

<p>Please share your valuable suggestions.</p>

<p>Thanks in advance:)</p>
