以Log Collector为例。这是相关的文件。关键在这里:ArrayList<String> commandLine = new ArrayList<String>();commandLine.add("logcat");//$NON-NLS-1$[...]Process process = Runtime.getRuntime().exec(commandLine);BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));