I am having a the hardest time trying to figure out how I can shutdown the cell phone in my program.
I have tried coming at this every which way and keep running into a wall.
Today I wrote a c program and compiled it with the NDK software. It's not working I was attempting to #include <sys/reboot.h> and trying the command reboot(RB_POWER_OFF). Seems that I get no response from doing so.
Is there anyone who may be able to help me here? How can I turn off the phone in a program? There must be a way!