Intent intent = new Intent(Intent.ACTION_REBOOT);
intent.putExtra("nowait", 1);
intent.putExtra("interval", 1);
intent.putExtra("window", 0);
this.sendBroadcast(intent);
Android通过代码重启设备
最新推荐文章于 2023-09-07 15:10:01 发布
Intent intent = new Intent(Intent.ACTION_REBOOT);
intent.putExtra("nowait", 1);
intent.putExtra("interval", 1);
intent.putExtra("window", 0);
this.sendBroadcast(intent);