title: How to send Command prompt output to android
body: <p>I am creating an app in which it will send some command to server and i want to get the output of that command on client (android).</p>
  
  <p>Basically i am sending command "systeminfo" and the output is too big to handle, so is there any way to get that big output on android as text view or anything else?</p>
  
  <p>Code is as below</p>
  
  <pre><code>Process process = Runtime.getRuntime().exec("systeminfo");
  </code></pre>
  
  <p>and for get the output i have used</p>
  
  <pre><code>BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
  
  String line = null;
  while ((line = br.readLine()) != null) {
      System.out.println(line);
  }
  </code></pre>
  
  <p>I am confused how to use it as too much of string. Any reference material would be appreciated.</p>