Intent i = new Intent(Intent.ACTION_REBOOT);
sendBroadcast(i);
在manifest.xml里也设置了权限,但运行时提示权限错误。
有人做过这个问题吗?请帮忙
...全文
1241打赏收藏
代码如何控制设备重启??
请问有人用代码控制设备重启过的吗?本人想通过代码控制模拟器或者手机重启,但是没有成功,以下是我的代码: Intent i = new Intent(Intent.ACTION_REBOOT); sendBroadcast(i); 在manifest.xml里也设置了权限,但运行时提示权限错误。 有人做过这个问题吗?请帮忙