Welcome!

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

Java Development

Reply
Developer
Posts: 81
Registered: ‎07-16-2008
My Device: Curve - 8320
My Carrier: AirTel

Screen Brightness and Contrast ...

Hello Everyone,

 

Is there anyway to Programatically adjust Blackberry's screen Brightness and/or Contrast  ?

 

Any pointer will be Appriciated.

 

Regards,

 

*(Vipul)() ;
Developer
Posts: 16,998
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Screen Brightness and Contrast ...

take a look at the class Display
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 81
Registered: ‎07-16-2008
My Device: Curve - 8320
My Carrier: AirTel

Re: Screen Brightness and Contrast ...

Thanks Simon,

 

If you meant setContrast(), it is deprecated. It throws an exception "UnsupportedOperation". At the same time, calling Display.isContrastConfigurable() returns false.

 

Thanks,

 

*(Vipul)() ;
Highlighted
Developer
Posts: 16,998
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Screen Brightness and Contrast ...

i looked only in the 4.2.1 API as i am currently developing with it.
i think you won't be able to configure these settings anymore.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter