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
New Developer
yellowapple
Posts: 2
Registered: ‎12-14-2009
My Device: 9000
Accepted Solution

After invoking Backlight.enable(true), the screen still remain black.

I invoke Backlight.enable(true) in a NON-event thread to attempt to turn the back light on. However, the screen still remains black even Backlight.isEnable() returns the boolean value true. Could someone help me figure out what could possibly go wrong? Thanks in advanced!

The following is the program snippet:

 

 Backlight.enable(true);

 try {

       Thread.sleep(1000L);  // allow the event thread to repain the screen when turning backlight on

  }catch(InterruptedException e) {}

boolean isLightOn = Backlight.isEnable(); // Notice: return "true" here, however the screen stays black.

New Developer
yellowapple
Posts: 2
Registered: ‎12-14-2009
My Device: 9000

Re: After invoking Backlight.enable(true), the screen still remain black.

Please ignore this post. It is because the application is not an UiApplication.