創建操作系統進程:ProcessBuilder和Runtime.exec的區別聯繫以及Leaking File Descriptors
http://blog.sina.com.cn/s/blog_605f5b4f01019w2q.html
Android:
通過Runtime.getRuntime().exec調用底層Linux下的程序或腳本
Runtime.getRuntime().exec()執行阻塞問題解決
你可以用那個方法 exec(String command, String[] args) 也就是說,把參數放在一個數組裏,然後調用。 String[] args = new String[] { "arg1", "arg2" }; Runtime.getRuntime().exec(command, args);