0

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

Rince Thomas
  • 4,158
  • 5
  • 25
  • 44

1 Answers1

2

Yes Device.requestPowerOff(boolean allowAutoStart)

Richard
  • 8,920
  • 2
  • 18
  • 24