String cmd = "su -c reboot";//让手机从启

     try {

         Runtime.getRuntime().exec(cmd);

    } catch (IOException e) {

    // TODO Auto-generated catch block

     new AlertDialog.Builder(this).setTitle("Error").setMessage(

        e.getMessage()).setPositiveButton("OK", null).show();

 }

相关文章:

  • 2021-10-25
  • 2021-08-03
  • 2022-12-23
  • 2021-05-20
  • 2021-05-29
  • 2021-08-03
  • 2021-12-26
  • 2022-02-13
猜你喜欢
  • 2021-07-14
  • 2021-09-04
  • 2022-02-07
  • 2021-09-30
  • 2021-11-23
  • 2021-11-17
  • 2021-04-06
相关资源
相似解决方案