I'm experiencing the same issue. This seems like a bug. I'm using .01 which seems to turn off the back light, but not the LCD itself. Basically, I need my app to be able to turn off the screen to conserve power, but I don't want the locked screen coming back when the user reactivates the phone.
> > WindowManager.LayoutParams lp = getWindow().getAttributes(); > lp.screenBrightness = 0.0f; > getWindow().setAttributes(lp); > > But this seem to put the phone into an odd state whereby touch events > are no longer received and when I later try to restore the screen > brightness, either by setting it to 1.0 or -1.0 - nothing happens! > The only way I can get the screen back is to hit the end button and > menu out of the screen lock. > > Is this the correct behavior? Is there any way to work around it and > A) receive touch events while the screen is dimmed and B) > programatically restore the brightness? > > NOTE: things work as expected with non zero brighness values such as > 0.1 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---