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
Highlighted
Developer
Posts: 588
Registered: ‎05-29-2009
My Device: 9100
Accepted Solution

backlightStateChange

I am trying  to detect when the backlight state is off  (no matter if my app is in foreground or background) to launch some threads then. I am implementing SystemListener2 in my Main class and overwriting  backlightStateChange method. I was thinking this method would be launched when light's state changes, but this is not happening. Am I doing something wrong?

Developer
Posts: 17,019
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: backlightStateChange

do you register your listener?

----------------------------------------------------------
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: 588
Registered: ‎05-29-2009
My Device: 9100

Re: backlightStateChange

Yes, indeed, I didn't register my listener. Good point... Smiley Tongue Now it's working fine.