How to power off an Android device?
android
Solution
There is no API in the Android SDK to allow user apps to do this.
The closest you could perhaps try would be `PowerManager.goToSleep()`.
Problem
How could I power off an android device via java code? Is it even possible? Do I need special permissions to do this?