how i can make an application let me know if someone is pinging my device??

  • Replies:5
aris savva
  • Forum posts: 6

Apr 20, 2012, 9:48:15 PM via Website

i have greated an android app where i can do ping and the app knows the interfaces that are up and it shows is me which network i am connecting and also notifying me when i connect and disconect from the internet but i would like to notify me if someone is pinging my device ?? can anyone help me please

Reply
Andreas V.
  • Admin
  • Forum posts: 7,352

Apr 20, 2012, 9:52:22 PM via Website

Hi Aris,

I´m moving your Post into the developer section... so help might be nearer

Reply
aris savva
  • Forum posts: 6

Apr 20, 2012, 9:53:59 PM via Website

ok thank you very much!!!

Reply
Deactivated Account
  • Forum posts: 5,136

Apr 21, 2012, 1:12:22 PM via Website

As far as i know, it is not possible to intercept the network on an ICMP Level to catch this event.

Maybee it would be possible with a rooted phone .. but i think chances low to do so.

lg Voss

Reply
aris savva
  • Forum posts: 6

Apr 21, 2012, 3:50:02 PM via Website

do you recommend it will be easier if i created log files and to store like when someone is connecting to the device and then the user will be able to see the log???

Reply
Deactivated Account
  • Forum posts: 5,136

Apr 21, 2012, 5:15:30 PM via Website

i don't think that you will be able to see any ICMP trafic on an unrooted phone. So what do you want to write to a log file?

Native ping is operating based on ICMP (Internet Core Message Protocol) and as far as i know there is no programming API which will give you access to this protocol level.

lg Voss

Reply