0

I am developing a tablet application for school and my requirement is to turn off my tablet, when user clicks on log out button provided in my application. This because I don't want to give any other access to users.

Can anybody tell me, is it possible? If yes, then how can I do this?

Thanks in advance..

giampaolo
  • 6,648
  • 5
  • 42
  • 73
Karan Mavadhiya
  • 1,032
  • 8
  • 23
  • see this [answer](http://stackoverflow.com/questions/3745523/programmatically-switching-off-android-phone/3745548#3745548), and [this](http://stackoverflow.com/questions/9860399/shut-down-android-device-programmatically). – Gunaseelan Jun 05 '13 at 07:19

1 Answers1

2

Actually.. the answer for this question is no if you are developing an ordinary sdk application.

Answer from Commonsware:

 Only applications signed with the system firmware signing key can do this.

EDIT:

Check this answer from Michalis

Community
  • 1
  • 1
amalBit
  • 11,489
  • 6
  • 71
  • 89