0

I am working on developing ping application.In terms of ICMP, is there any proper ping API for android application in order to count the number of packets?

Thank you.

user1085055
  • 11
  • 1
  • 1

2 Answers2

0

I've recently started development on 'jpingy' a java ping library.

Maybe it does already some stuff what you want. More to come!

http://code.google.com/p/jpingy/

tgoossens
  • 9,676
  • 2
  • 18
  • 23
0

try

Process p = Runtime.getRuntime().exec("ping www.google.com");

and read output from p.getOutputStream()

rattisuk
  • 407
  • 5
  • 7