He probably needs Java code since he’s working on Android. The Java equivalent — which I believe works on Android — should be:
InetAddress.getByName(host).isReachable(timeOut)
He probably needs Java code since he’s working on Android. The Java equivalent — which I believe works on Android — should be:
InetAddress.getByName(host).isReachable(timeOut)