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

Web and WebWorks Development

New Developer
Posts: 21
Registered: ‎07-13-2009
My Device: Not Specified

Keep the Screen On

Hey everyone,


This is a bit of an odd question, but I was wondering if it was possible to leave a screen lit up even if the user isn't touching the phone.


I.e. traditionally if an app is in the middle of being used, the user leaves the device on the table and goes away, I want the screen to stay on.


I was thinking of making a script that moved the focus every so often to stop it from sleeping, but Im not sure if this will work since its user interaction that keeps the screen on. Anyone have any experience with this?




Posts: 48
Registered: ‎08-31-2010
My Device: 8530
My Carrier: Sprint

Re: Keep the Screen On



You can write a javascript extention to do that in a widget. I don't believe its supported without writing your own custom javascript extension though.


Go to the developer video library and view the video on writing custom javascript extentions. There is also a sample download somewhere.