// Make the screen full bright for this activity.
        WindowManager.LayoutParams lp = getWindow().getAttributes();
        lp.screenBrightness = 1.0f;

        getWindow().setAttributes(lp);



On Wed, Apr 15, 2009 at 10:21 PM, SR <stan.r...@gmail.com> wrote:

>
> Dianne,
>
> Would you mind sharing a snippet of code on how to do this in Cupcake
> using the new API?
>
> Thanks!
>
> Stan
>
> On Apr 8, 3:49 pm, Dianne Hackborn <hack...@android.com> wrote:
> > There is a new API to be able to force the screen brightness while your
> > window is on-screen.
> >
> > On Wed, Apr 8, 2009 at 12:08 PM, Todd Sjolander <guyfantas...@gmail.com
> >wrote:
> >
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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