ping -c 1 www.yourserver.com Search for text "1 packets received"
On Thursday, August 16, 2012 3:50:44 AM UTC-5, chainz roid wrote: > > Hello > > I'm working with android ICS. I want to check whether my server is > available or not, hence i tried is.Reachable() but its not efficient. when > i try this function application is killed. So i moved on to PING command > its working file and its showing the Ping statistics > > Pinged IP, Packets transmitted, Packets received, Packets loss and > transmitted time. > > But i need the status, I need to get OK or FAIL its enough. no need of the > ping statistics > > Can any one help me the functions to return the just "Response OK" or > "Response FAIL" just true or false. > > Thanks in advance. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

