1

Possible Duplicate:
Programmatically switching off Android phone

Is it possible to write an application that turns off (not reboot) an Android device? For example, it plays a song and after 30 minutes, turns the device off, automatically.

Community
  • 1
  • 1
Farid Ala
  • 668
  • 1
  • 12
  • 30
  • http://stackoverflow.com/questions/2927083/how-to-realize-the-shutdown-using-code/ - this is what you need. – Malcolm Jan 25 '12 at 23:01

1 Answers1

1

Already aswered here.... Why does my app throw an `android.permission.REBOOT SecurityException`?

Unless you have the manufacturer key to sign your app/or if your device is rooted..it is not possible to turf it off.

Community
  • 1
  • 1
Navin Ilavarasan
  • 1,271
  • 11
  • 15