Ejemplo n.º 1
0
 public StreamReader Get()
 {
     Runtime runtime = Runtime.GetRuntime();
     System.Diagnostics.Debug.WriteLine("ActRec.Android checking for previous errors");
     string[] parameters = new string[] { "timeout", "4", "logcat", "-d" };
     Java.Lang.Process process = new ProcessBuilder(parameters).RedirectErrorStream(true).Start();
     process.WaitFor();
     System.Diagnostics.Debug.WriteLine("logcat return code = " + process.ExitValue());
     Stream stream = process.InputStream;
     return new StreamReader(stream);
 }