Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
LinkBack Thread Tools
Old October 9th, 2009, 10:48 AM   #1 (permalink)
New Member
Thread Author (OP)
Join Date: Oct 2009
Posts: 1
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Change brightness in Donut

Hi there,

I am updating my application to Android 1.6 Donut. On Donut, I can't change the screen brightness from my application anymore. On Cupcake it works, and I do it this way:

LayoutParams lp = getWindow().getAttributes();  
lp.screenBrightness = 0.2f; 
Has this function been removed or replaced in Donut? Or do I need a permission to change it? Or does it still work for you?

Thank you very much,

kaloer is offline  
Reply With Quote
sponsored links
1.6, brightness, donut, layoutparams

Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -5. The time now is 05:06 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.