Help my brain hurts,,, how do I turn off the cell phone

Put your problem here if it does not fit any of the other categories.

Help my brain hurts,,, how do I turn off the cell phone

Postby bobbyrossberg » Mon Aug 17, 2009 2:33 am

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!
bobbyrossberg
Freshman
Freshman
 
Posts: 2
Joined: Sun Aug 16, 2009 10:31 pm

Top

Postby Shanytc » Mon Aug 17, 2009 8:33 am

- Shany -
Shanytc
Junior Developer
Junior Developer
 
Posts: 17
Joined: Fri Aug 14, 2009 11:00 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Alexa [Bot] and 21 guests