如何使用code来实现关机 [英] How to realize the shutdown using code
本文介绍了如何使用code来实现关机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有方法让手机关机使用code,我不知道这一点,并希望有人给我一些建议,或者例如,code,API
is there a methods to keep mobile phone off using code, i have no idea about this,and hope someone give me some advice,or example , code,api
谢谢
推荐答案
下面是一个完整的例子: https://github.com/rbochet/AutoShutdown
Here is a complete example : https://github.com/rbochet/AutoShutdown
更准确地说:<一href="https://github.com/rbochet/AutoShutdown/blob/master/src/org/servalproject/autoshutdown/UnlockWatcher.java#L71" rel="nofollow">https://github.com/rbochet/AutoShutdown/blob/master/src/org/servalproject/autoshutdown/UnlockWatcher.java#L71
需要root。
这篇关于如何使用code来实现关机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文