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

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -