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.
String[] commands = new String[1];
commands[0] = "ls";
try {
Process p = Runtime.getRuntime().exec();
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line;
while ((line = br.readLine()) != null) {
System.out.println(line);
}
br.close();
p.waitFor();
} catch (InterruptedException ie) {
throw new IOException("Error waiting for command " commands[0] +" :" +ie.getMessage());
}