安卓执行shell 命令
Runtime rt = Runtime.getRuntime();
try {
String str = new String("mpuCntl 0 ")
+editText1.getText().toString()+" "
+editText2.getText().toString();
rt.exec(str);
Log.d("MpuCtrl", "onClick: "+str);
} catch (IOException e) {
// TODO Auto-generated catch block
Log.d("MpuCtrl", "onClick: erro" + e);
e.printStackTrace();
}