why process give null inputstream in test runner class?
问题 In my android test project, I simply read the logcat using adb command like, public StringBuilder log=new StringBuilder(); public String line=""; public String temp=""; public void testSolo() throws Exception { String baseCommand = "logcat -v time"; baseCommand += " ActivityManager:I "; // Info for my app baseCommand += " *:S "; // Silence others try { Process logReaderProcess = Runtime.getRuntime().exec(baseCommand); BufferedReader bufferedReader = new BufferedReader( new InputStreamReader