Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Trusted Contributor
Posts: 107
Registered: ‎04-08-2011
My Device: BlackBerry Q10
My Carrier: Mobilink

Cannot change screen brightness


I keep using following code on Android deveices and it works fine. Cannot use this to chnage screen brightness on Playbook.


WindowManager.LayoutParams layoutP = getWindow().getAttributes();
                layoutP.screenBrightness = 100 / 100.0f;


Any help please?



Get Speedometer on your phone. http://www.speedometer.mobi
Posts: 255
Registered: ‎01-08-2013
My Device: Z10 LE
My Carrier: SiMobil

Re: Cannot change screen brightness

Has anyone succeeded to make this work?


I am facing the same problem, using very similar code to ajust screen brightness. It works fine on Android devicess, however it does not work on Blackberry.


WindowManager.LayoutParams lp = getWindow().getAttributes();

lp.screenBrightness = value[screenBrightness];


Any help would be appreciated