12-22-2008 03:53 AM
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
12-22-2008 05:24 AM
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.
01-23-2009 01:04 PM
01-23-2009 03:27 PM
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.
01-24-2009 06:46 PM
01-25-2009 02:30 AM
01-26-2009 01:16 PM
01-26-2009 01:32 PM
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.