Hardware button On/Off
Is it possible to know when a user presses the on /Off button.
I can controll the others buttons, but not this one.
I want to know when the user turn on the device so that I can start my program. And stop my program when the user turn off the device..