In my app I want to completely dim the screen for a period of time and
later restore the brightness.  Dimming works fine:

 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to