java - How to switch Off / Turn Off Android Tablet through coding? -


i having micromax fun book android version 4.0.3 , want turn off tablet through android code.

actually want turn off tablet application exits.
may need hardware permission. not sure it.

you can reboot device using powermanager api. may need have reboot permission in manifest though.

http://developer.android.com/reference/android/os/powermanager.html#reboot(java.lang.string) http://developer.android.com/reference/android/manifest.permission.html#reboot


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -