This is broken on  2.0 on Droid because of the auto-brightness feature, but
I believe will be fixed in the first update.

On Tue, Nov 17, 2009 at 6:55 PM, Brad Fullmer <[email protected]> wrote:

> I use the following code to dim the screen in one of my apps.  Up
> until 2.0 I used this code to basically turn on and off the backlight:
>
>    WindowManager.LayoutParams lp = getWindow().getAttributes();
>    lp.screenBrightness = val;
>    getWindow().setAttributes(lp);
>
> Now in 2.0 this is no longer working.  Is this functionality now
> guarded by a permission?  Looking at the list I didn't see anything
> that seemed applicable.
>
> Any other workaround ideas?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to