네트워크 체크할 때 사용했다.
String host = "192.168.0.100";
String cmd = "ping -c 1 -W 10 " + host;
try {
Process proc = Runtime.getRuntime().exec(cmd);
proc.waitFor();
int result = proc.exitValue();
Log.d("------result", result);
} catch (Exception e) {
Log.d("------ping", e.getMessage());
}