Code to Shutoff Phone

0 Connor Conz · January 16, 2015
I am creating an app and part of the app is the user click a button and then the phone begins to shutdown. I can't seem to find the code to do this. Can anybody help?

Post a Reply


Oldest  Newest  Rating
+2 Mike Conroy · January 16, 2015
May I ask why you would want to create an app that can do this? It sounds like you are trying to create a malicious application.

Either way this seems like something that would only be possible on rooted phones and even still I am unsure how to achieve this.

These links may or may not help though:
  • 1

Java / Android Development


Very popular language used to create desktop applications, website applets, and Android apps.

Bucky Roberts Administrator