Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 单击按钮重新启动手机
是否可以以编程方式重新启动设备。
我只想通过单击按钮重新启动设备。
请试试
try { Runtime.getRuntime().exec("su"); Runtime.getRuntime().exec("reboot"); } catch (IOException e) { }