Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Androidでpingテストがどのように機能するか知りたいですか? 私が見つけたコードを以下に示します
Runtime runtime = Runtime.getRuntime(); Process proc = runtime.exec("ping -c 1 " + host); proc.waitFor(); int exit = proc.exitValue();
ここから、runtime.exec() メソッドに提供する文字列に関する情報を取得します。