Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
Raposo
Posts: 19
Registered: 07-22-2008

Is it possible to delay the power off the system?

Hello:

 

My application needs to register and report the power off the system. But it turns off before this happens.

 

Can someone show an example?

 

 

Thanks

Please use plain text.
Developer
Posts: 5,339
Registered: 09-20-2008

Re: Is it possible to delay the power off the system?

To intercept the "Power off" event - use method: powerOff() in net.rim.device.api.system.SystemListener inteface.

 

Note that you cannot delay power off process.

 

 

Tbilisoft Team
BlackBerry Utilities For Everyday Life
main site: http://www.tbilisoft.com
site for mobile users: http://www.tbilisoft.mobi
Please use plain text.
New Developer
scottsheppard
Posts: 3
Registered: 01-23-2009

Re: Is it possible to delay the power off the system?

Is there a way to have a dialog alert when you are trying to power off?
Please use plain text.
Developer
Posts: 5,339
Registered: 09-20-2008

Re: Is it possible to delay the power off the system?

Yes, you can try to display it in powerOff() method.

 

But it does not make sense.

 

The system uses powerOff() to notify you that it is turning off.

 

It won't wait until your dialog is dismissed nor until you do something.

 

There is no mechanisms to control power-off behaviour.

 

 

Tbilisoft Team
BlackBerry Utilities For Everyday Life
main site: http://www.tbilisoft.com
site for mobile users: http://www.tbilisoft.mobi
Please use plain text.
New Developer
scottsheppard
Posts: 3
Registered: 01-23-2009

Re: Is it possible to delay the power off the system?

Thanks for you answer. I have a client that wanted to be warned and give them the option to power off. I wasn't sure if that was possible. So there is no way to cancel the power off (Red Key) on phone?
Please use plain text.
Developer
Posts: 5,339
Registered: 09-20-2008

Re: Is it possible to delay the power off the system?

No, unfortunately there is no way to cancel powerOff event.
Tbilisoft Team
BlackBerry Utilities For Everyday Life
main site: http://www.tbilisoft.com
site for mobile users: http://www.tbilisoft.mobi
Please use plain text.
New Developer
scottsheppard
Posts: 3
Registered: 01-23-2009

Re: Is it possible to delay the power off the system?

Is there a way to change the message when the phone is powering off. Like instead of press any key or what ever it says to some thing else?
Please use plain text.
Developer
Posts: 5,339
Registered: 09-20-2008

Re: Is it possible to delay the power off the system?

Unfortunately there is no way to force the operating system wait something before powerOff() nor override standard popup nor make your own popup instead of that.

 

Tbilisoft Team
BlackBerry Utilities For Everyday Life
main site: http://www.tbilisoft.com
site for mobile users: http://www.tbilisoft.mobi
Please use plain text.