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
dbigham
Posts: 521
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

Prevent screen from turning off

Does anyone know how an application can tell the OS not to turn the screen off during inactivity?
Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Prevent screen from turning off

[ Edited ]

Check the class Backligth.

 

Edit: BackLight to Backlight. Tnx. mantaker.

Message Edited by BBDeveloper on 17-04-2009 06:33 PM

Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
Developer
mantaker
Posts: 1,477
Registered: ‎12-30-2008
My Device: Torch 9810

Re: Prevent screen from turning off

Typo :smileytongue: .. Have a look at the class Backlight ..

 

http://www.blackberry.com/developers/docs/4.7.0api/net/rim/device/api/system/Backlight.html

 

Cheers.. 

--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Please use plain text.
Developer
Rajat_10Sep
Posts: 696
Registered: ‎12-02-2008
My Device: Not Specified

Re: Prevent screen from turning off

Hi,

 

may be this link may help you

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=22188&query.id=15...

Regards,
Rajat Gupta.
--------------------------------------------------------------------------------
If your problem was get solved then please mark the thread as "Accepted solution" and kudos - your wish
Please use plain text.
Developer
mreed
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Prevent screen from turning off

The max timeout is 255 seconds, so every 255 seconds you can call Backlight.enable(true, 255).
Please use plain text.