This application I create to simplified in shutdown-ing my android tablet. There are 4 function included in this simple app, i.e:
This function force android to shutdown using command "reboot -p". Shutdown android quickly.
Reboot android using command "reboot".
3. Reboot to Recovery
Reboot android device to recovery mode.
Fast reboot, achive through restarting the android system without full reboot.
I release the application with apache license, you can download it from my github:https://github.com/joielechong/Ributer
Feel free to use any part of the code ;)
Note: This should be quite safe, but still, as your filesystems are not unmounted (just a sync call is made), there is the possibility that you may loose data. Therefore I do not take any warranty! USE AT YOUR OWN RISK!
If you use this app on a normal phone that is not rooted, it will HANG or DO NOTHING.
If you don't know what "rooted phone" means or how to root your phone or what the implications are... you should not use the app.
some part of the application are adopted from android-shutdown by Ubicoo