Search code examples
blackberryblackberry-jdejde

Code to turn blackberry off


Is there a command or piece of code that I can use to switch the blackberry off from within my app? I have created a simple app that consists of a button, now what I want is for the device to shut down whenever the button is clicked. Is this possible?

Thanks


Solution

  • Yes Device.requestPowerOff(boolean allowAutoStart)