private void shutdown() {
			try {
				Process process = Runtime.getRuntime().exec("su");
				DataOutputStream out = new DataOutputStream(
						process.getOutputStream());
				out.writeBytes("reboot -p\n");
				out.writeBytes("exit\n");
				out.flush();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
Note:手机必须获取Root权限!!!
posted on 2013-03-14 10:31  纯洁的坏蛋  阅读(698)  评论(0编辑  收藏  举报