具体方法参考:
private void rebootSystem(){ PowerManager pManager=(PowerManager) getSystemService(Context.POWER_SERVICE); pManager.reboot(""); }
private void rebootSystem(){ Intent reboot = new Intent(Intent.ACTION_REBOOT); reboot.putExtra("nowait", 1); reboot.putExtra("interval", 1); reboot.putExtra("window", 0); sendBroadcast(reboot); }
Android实现关机重启的方法,布布扣,bubuko.com
原文:http://blog.csdn.net/heqiangflytosky/article/details/19979581