03-03-2009 10:24 AM
Is there a way to do this? OnObscured doesn't seem to be called, which makes sense. I wasn't able to find anything on the forums about this.
Solved! Go to Solution.
03-03-2009 10:44 AM
03-03-2009 11:04 AM
You can use Backlight class for this. If you need to check whether backlight is on or off then you can use Backlight.isEnabled() or if you want to enable backlight (always or for specific time) then you can use Backlight.enable() and you can also set backlight timeout using Backlight.setTimeout().
03-03-2009 11:10 AM
I guess you want to know how application can detect when back light of the device is on/off.
There is an class for this with name "net.rim.device.api.system.Backlight"
It contains various method like isEnabled() which determines if the backlight is currently enabled or not.
I think you can use these methods.
Please let me know this solved your problem or not.
If your issue solved, please resolve this thread. Set "Solution" mark on the post which contains the answer to your question. Thanks.Please If I successfully help you with an issue, thank you for clicking "kudos" in my post
03-04-2009 06:40 PM