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.
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.
Intent i = new Intent("android.intent.action.ACTION_REQUEST_SHUTDOWN");
i.putExtra("android.intent.extra.KEY_CONFIRM", true); startActivity(i);