shell 명령어 썸네일형 리스트형 안드로이드에서 커맨드 명령어 날려서 결과 확인하기 public static int isHostReachable(String hostIP, String where){Process process;Runtime runtime = Runtime.getRuntime();int hostReachResult = NETWORK_UNREACHABLE;try{String cmd = "ping -c 1 -i 4 -w 3 "+hostIP; //shell에서 실행할 명령, c: 횟수, i:간격, w:핑테스트 종료 시간DEBUG.log("isHostReachable", "where : "+where);DEBUG.log("isHostReachable", "cmd : "+cmd); process = runtime.exec(cmd);BufferedReader br = new Buff.. 더보기 이전 1 다음