0

I want to switch off android phone when clicking a button in android application. Is it possible..

How can I give system permission to my project.

Can any one guide me to do this.

msj
  • 199
  • 1
  • 2
  • 13
  • 2
    http://stackoverflow.com/questions/3745523/programmatically-switching-off-android-phone – saeed Mar 17 '16 at 10:29

1 Answers1

0
Intent i = new Intent("android.intent.action.ACTION_REQUEST_SHUTDOWN");

i.putExtra("android.intent.extra.KEY_CONFIRM", true); startActivity(i);