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

Posts: 610
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use

PlayBook - How to Prevent Standby When Application Open?

One of my application requires that the device NOT go into standby mode after 5 minutes.

Application Logic

Default Tablet / Application Behavior:
After 90 second to 5 minutes, tablet goes into standby.

Desired Tablet / Application Behavior:

Case 1: User taps a button, which I call "prevent-standby", which sets variable in application to TRUE, after button tapped, application does not go into standby for an indefinite time (i.e. until "exit prevent standby" button tapped again).

Case 2: User sets time to prevent standby (i.e. 60 minutes, 2 hours, 3 hours, or x hours y minutes). Then taps button to enter "prevent-standby" mode for set time. Application exits "prevent standby" mode after set time.

Things To Consider

  • Tablet will be docked on charging station: battery life not an issue
  • User must tap a "button" to tell application that it will prevent standby.
  • The prevent-standby mode cannot initiate when the application is launched.

What Part of the WebWorks 2.0 API should I reference?
WebWorks 2.0 API Tablet OS

Question 1:
How would I implement prevent-standby?

Question 2:
If I wanted to launch the video camera in my application, how do I prevent standby on the video camera?

P.S. This will be used for a surveillance/video cam monitoring program. I believe there are many other use-cases that would benefit from preventing-standby as well....


Posts: 42
Registered: ‎01-18-2011
My Device: PlayBook

Re: PlayBook - How to Prevent Standby When Application Open?

Bump, need to prevent my application from falling into standby mode as well.

New Developer
Posts: 6
Registered: ‎05-04-2011
My Device: Playbook
My Carrier: n/a

Re: PlayBook - How to Prevent Standby When Application Open?

i have the same request. btw it's strange that user can't choose time more than 5 minutes
Posts: 669
Registered: ‎02-19-2011
My Device: BlackBerry PlayBook 32GB
My Carrier: Sprint

Re: PlayBook - How to Prevent Standby When Application Open?

I need this as well. On WebOS there's a way to keep the screen on at all times, as long as your app is in the foreground. Would be great if WebWorks had such a setting as well.

Staff UI Prototyper (read: full-time hacker)

My BB10 apps: Screamager | Scientific RPN Calculator | The Last Weather App

New Member
Posts: 1
Registered: ‎07-19-2011
My Device: PlayBook Tablet
My Carrier: n/a

Re: PlayBook - How to Prevent Standby When Application Open?

NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;

should do the trick