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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

java - stack overflow exception on xml transformation -