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

Replies

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:
http://www.phonesdevelopers.com/1707668/
http://www.javacodegeeks.com/2013/10/in-depth-android-shutdown-sequence.html
  • 1

Java / Android Development

107,307 followers
About

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

Links
Moderators
Bucky Roberts Administrator