重新启动Android设备编程 [英] Reboot android device programmatically
本文介绍了重新启动Android设备编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:结果
重新启动手机上的一个按钮,点击
是否有可能语法重新启动设备亲。
Is it possible to reboot a device pro grammatically.
我只想重新启动装置上的按钮点击。
I just want to reboot the device on a button click.
推荐答案
请尝试
try {
Runtime.getRuntime().exec("su");
Runtime.getRuntime().exec("reboot");
} catch (IOException e) {
}
这篇关于重新启动Android设备编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文