Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
StringBuffer strOutput = new StringBuffer("");
StringBuffer strError = new StringBuffer("");
String sTemp = null;
Process process = Runtime.getRuntime().exec(
"myprog.exe arg1 arg2");
BufferedReader stdOutput = new BufferedReader(
new InputStreamReader(process.getInputStream()));
BufferedReader stdError = new BufferedReader(new InputStreamReader(
process.getErrorStream()));
while ((sTemp = stdOutput.readLine()) != null) {
strOutput.append("\n").append(sTemp);
}
while ((sTemp = stdError.readLine()) != null) {
strError.append("\n").append(sTemp);
}
returnValue = process.waitFor();