Possible Duplicate:
Reboot the phone on a button click
Is it possible to reboot a device pro grammatically.
开发者_如何学CI just want to reboot the device on a button click.
Please try
try {
Runtime.getRuntime().exec("su");
Runtime.getRuntime().exec("reboot");
} catch (IOException e) {
}
精彩评论