tags:

views:

26

answers:

1

Hello In my android application i would like to keep the backlight on always,without the screen getting locked.

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();


w1.release;

Have also used user permission in manifest.

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.

Could you please let me know if there is any solution for this.

Please share your valuable suggestions.

Thanks in advance:)

A: 

Please see the answer here: http://stackoverflow.com/questions/2131948/force-screen-on

Steve Pomeroy
Thanks Steve it works fine.
Remmyabhavan
Please mark the question as being answered if it suits your needs :-)
Steve Pomeroy