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: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Backlight status on or off ?

Anybody knows how to get current backlight status ?

 

I cannot seem to access that information from the Backlight class :-(

 

Something like getCurrentBrightness()? 

 

Thanks 

 

P.S. I only need to check whether backlight is turned on or off. 



"Listen carefully, I shall say this only once"
BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Backlight status on or off ?

Use the BackLight.isEnabled() method to query this.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: Backlight status on or off ?

Thanks ! 

I will test it as soon as possible.

 

But the naming is confusing. IsEnabled() sounds like a query to see whether the backlight is enabled at all, and not wether it is on or off at present time Smiley Sad

 



"Listen carefully, I shall say this only once"
New Member
Posts: 1
Registered: ‎08-03-2011
My Device: 9780
My Carrier: dev

Re: Backlight status on or off ?

Use the BackLight.isEnabled() method to get current backlight status. --> isn't true. if away return true if allow backlight on my mobile