[android-developers] How to turn off the screen while the service is running in background

2012-05-30 Thread kelum prasad
Hi, I have an application which uses the Light Sensor to read the light value and I want to turn off the screen if the light value is below a defined margin. And if it is upper the defined margin, screen should turn on. Further, at all this time, other functionalities of the application should

Re: [android-developers] How to turn off the screen while the service is running in background

2012-05-30 Thread Mark Murphy
On Wed, May 30, 2012 at 6:33 AM, kelum prasad kelum.pra...@gmail.com wrote: I tried with wake locks in Power Management API  to turn on and turn off the screen. You don't turn off the screen. Android turns off the screen, based on the user's preferred screen timeout interval. Is there any