http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#screenBrightness

A value of 1 for brightness means "full bright" so I doubt that is the
value you are wanting to use...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Jul 24, 2012 at 10:49 AM, Cythes <cytheshic...@gmail.com> wrote:

> So this is really a repost from Stack Overflow so that is out there in the
> open. Here is what I am trying to do, I'm trying to get the screen to
> "black out" when I run the app in question. I know this
> sounds Spam-like but I assure you this app is being built in the best of
> intentions. So here is the basic jist of the code I need a hand with:
>
> WindowManager.LayoutParams lp = getWindow().getAttributes();
> float brightness = 1.0f;
> lp.screenBrightness = brightness;
>  getWindow().setAttributes(lp);
>
> I have also tried:
>
> android.provider.Settings.System.putInt(this.getContentResolver(),
>  android.provider.Settings.System.SCREEN_BRIGHTNESS, );
>
> As well as:
>         WindowManager.LayoutParams lp = getWindow().getAttributes();
>          lp.BRIGHTNESS_OVERRIDE_OFF;
>
> So Whats going on here?
>
>
>  --
> 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

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